Hello, I have a setup where a django's debug setting is changed depending on whether os.environ['PRODUCTION'] is true or false.
Which means when I setup apache, I do "SetEnv PRODUCTION true" to mark a site as production. I then have /etc/hosts setup so that http://home and http://cec point to localhost. Then in apache I have dev versions of my two sites (home and cec) as follows http://pastebin.com/m56aab2f1 and http://pastebin.com/m537594e6 This works fine. However I also want it so when people access my computer from outside (i.e. http://delfick.servehttp.com) then debug isn't turned on. For this I have http://pastebin.com/m28abffd5 This also works fine. However it seems this solution isn't a very good one and it will alternate between versions. so if I refresh http://cec then sometimes it's the production version, sometimes development version and same for http://delfick.servehttp.com. is there a way to get around this or will I just have to create copies of the sites to be used for the production version? Thankyou Regards Stephen --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---