I had a problem deploying my application on a production server. If I set in settings.py
DEBUG = True TEMPLATE_DEBUG = DEBUG
then everything works fine, but if I changed the settings to:
DEBUG = False TEMPLATE_DEBUG = DEBUG
then my application is broken. I do not see static files (js, css, ...), and in the admin panel I can not add / edit my registered models. Do you have any tips how can I solve this problem?
My envoirment:
- Python 2.7.3
- Django 1.4.1
- Nginx 1.2.3
- uwsgi 1.3
source share