-
Notifications
You must be signed in to change notification settings - Fork 19
Troubleshooting
chibicitiberiu edited this page Dec 30, 2018
·
3 revisions
In release mode (Debug=False), Django stops fetching static
and media
resources, the responsibility now falls upon the web server (e.g. Apache, Nginx) to fetch these files. If you are using a web server, you have to map the /static
URLs to the folder app/YtManagerApp/static
, and the /media
URL to the folder data/media
. An example is provided for Nginx (under /docker/nginx/nginx.conf
).
If you are only using manage.py runserver
, you can force Django to fetch the resource files, by passing the --insecure
argument (i.e. manage.py runserver --insecure
), or simply set Debug=True
in config/config.ini
.