List Info

Thread: Django and the magic reappearing debug flag




Django and the magic reappearing debug flag
user name
2006-12-29 08:10:46
Evening folks,

I have an issue on one of my sites where the debug mode
keeps getting
turned on when I want it off. I'm wondering what's going on
and would
love for someone to show me where I'm screwing up.

Here's the setup -

1) I have a django application that's hosted in an svn
repository.
2) ... which is checked out onto a dev server and a
production server.
3) the repository has a settings_template.py file which I
then copy and
modify for the appropriate server.
4) the dev. server has DEBUG = True in its settings.py
5) the production server has DEBUG = False in its
settings.py
6) Neither of the settings.py's are under version control
7) .. and the dev and production servers are pointed at the
correct
settings files.

Problem - I fiddle around with the dev version, and check it
in when
I'm happy with it. When I upgrade the production site, debug
is ON even
though the settings.py file sets it to OFF. I usually have
to remove
all .pyc files (which are NOT under version control either,
so should
not be affected), and pkill python a few times to get it
back to
normal.

I've double checked that svn isn't storing any .pyc files,
and I
deliberately delete this when upgrading the production site.
Nor am I
doing anything stupid like modifying settings.DEBUG in some
other file.

Any ideas to help me keep debug off?

Cheers 
Simon


--~--~---------~--~----~------------~-------~--~----~
 You received this message because you are subscribed to the
Google Groups "Django users" group.
To post to this group, send email to django-usersgooglegroups.com
To unsubscribe from this group, send email to
django-users-unsubscribegooglegroups.com
For more options, visit this group at htt
p://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

[1]

about | contact  Other archives ( Real Estate discussion Medical topics )