Hi guys, I have 3 django projects for 2 subdomains parents.abc.com,teachers.abc.com and abc.com. under one django application. Inside the httpd.conf file, I have the following:
Under the wsgi files, I set DJANGO_SETTINGS_MODULE to point to the appropriate settings file for each project. My problem comes (after a restart) if I visit parents.subdomain.com, followed by teachers.subdomain.com (or vice versa), I will encounter url error in the second because it seem like it is referencing the urls.py for the first project. i.e teachers.subdomain.com is looking at the settings file for parents.subdomain.com (vice versa). Anything wrong with my httpd.conf file =? asked 21 Mar '11, 00:26 amateur |
Hi, Looking at this old post here: http://forum.webfaction.com/viewtopic.php?pid=13326#p13326 You need to set up the Daemon process stuff per VirtualHost, this is what is causing the error you are seeing. So I was wrong the first time, there is something wrong with your apache2/conf/httpd.conf. :) answered 21 Mar '11, 02:22 klynton ah.. great. I managed to get it after adding wsgidaemonprocess and wsgiprocessgroup
(21 Mar '11, 11:11)
amateur
|
Hi,
I don't see anything wrong with your configuration here, have you defined a separate set of URLs for both of the WSGI files in your code somewhere?
yea, i have from django.core.handlers.wsgi import WSGIHandler
os.environ['DJANGO_SETTINGS_MODULE'] = 'settings.parents_settings' application = WSGIHandler() and settings.teachers_settings in the other wsgi