|
|
|
|
|
by richardhenry
5746 days ago
|
|
Yikes! if socket.gethostname() == 'your.domain.com': DEBUG = False ? This is just bad advice. I prefer to be explicit in the settings for each environment, and create a settings package, with the following modules: - common - development - staging - production Then in each of the non-common modules import the common variables, and set your DJANGO_SETTINGS_MODULE depending on the environment. virtualenv makes this particularly easy. Here's a writeup by Zachary Voase, who I've had the pleasure of working with more than once: http://blog.zacharyvoase.com/2010/02/03/django-project-conve... |
|