Why does DEBUG=False setting make my django Static Files Access fail?

后端 未结 14 2084
忘了有多久
忘了有多久 2020-11-22 05:16

Am building an app using Django as my workhorse. All has been well so far - specified db settings, configured static directories, urls, views etc. But trouble started sneaki

14条回答
  •  日久生厌
    2020-11-22 06:04

    This is Exactly you must type on terminal to run your project without DEBUG = TRUE and then you see all assets (static) file is loading correctly On local server .

    python manage.py runserver --insecure 
    

    --insecure : it means you can run server without security mode

提交回复
热议问题