Re: Django and mod_wsgi serving different apps from separate virtual hosts on the same server

2013-02-07 Thread Sam Solomon
Glad you figured it out! On Thu, Feb 7, 2013 at 2:55 PM, robertlnewman wrote: > Just thought I would wrap this up. Turns out the problem was that my > sysadmin did not have the port I wanted (8788) open to traffic. My syntax > was correct. The problem was a network one. > > Sam - I sincerely app

Re: Django and mod_wsgi serving different apps from separate virtual hosts on the same server

2013-02-07 Thread robertlnewman
Just thought I would wrap this up. Turns out the problem was that my sysadmin did not have the port I wanted (8788) open to traffic. My syntax was correct. The problem was a network one. Sam - I sincerely appreciate your help in (a) verifying that my syntax looked good, and (b) describing some

Re: Django and mod_wsgi serving different apps from separate virtual hosts on the same server

2013-02-07 Thread robertlnewman
Okay no worries. Just thought you might have had some mod_wsgi 'secret sauce'. Graham Dumpleton himself acknowledges that the docs for mod_wsgi are outdated in some respects (see the comments at the foot of his article), so you never know. Thanks again. I appreciate your time. - Rob On Feb 7,

Re: Django and mod_wsgi serving different apps from separate virtual hosts on the same server

2013-02-07 Thread Sam Solomon
Regarding having WSGIDaemonProcess outside of vhosts, as explained in the comment I added, it allows you to use the same process to handle requests from multiple vhosts. As for the rest, I honestly don't remember why or where they came from, I just know that this is probably not all that common (m

Re: Django and mod_wsgi serving different apps from separate virtual hosts on the same server

2013-02-07 Thread robertlnewman
Hi Sam, Thanks for the reply. Very interesting. So you define each WSGIDaemonProcess outside of the vhosts and then call it from within the vhost block? What is the advantage of that? Or is it just 6-of-one, half-a-dozen of another? Also, I notice that you are passing a bunch more args to WSGIS

Re: Django and mod_wsgi serving different apps from separate virtual hosts on the same server

2013-02-07 Thread Sam Solomon
Can't spot any issues but here is what we have to run multiple staging versions of our site: group_* names are more descriptive in the actual settings WSGIDaemonProcess group_1 processes=1 threads=100 display-name=%{GROUP} inactivity-timeout=30 #defining it out here allows you to use the same

Django and mod_wsgi serving different apps from separate virtual hosts on the same server

2013-02-06 Thread robertlnewman
Hi fellow Django devs, I have been going around and around trying to figure this out for 2 days, without success. I am trying to serve two Django sites from one webserver using Apache's virtual hosts. The first works, the second doesn't. (Note that I have been happily serving Django content via

Re: django and mod_wsgi

2011-02-28 Thread Graham Dumpleton
On Monday, February 28, 2011 11:23:14 PM UTC+11, atm wrote: > > Try adding, > > > *import os* > > *import sys* > > * * > > *path = 'C:\\Programme\\Apache Software Foundation\\Time2\\Time2\\'* > > *path1 = 'C:\\Programme\\Apache Software Foundation\\Time2\\'* > > * > * > > *if path not in sys.pa

Re: django and mod_wsgi

2011-02-28 Thread Anoop Thomas Mathew
Try adding, *import os* *import sys* * * *path = 'C:\\Programme\\Apache Software Foundation\\Time2\\Time2\\'* *path1 = 'C:\\Programme\\Apache Software Foundation\\Time2\\'* * * *if path not in sys.path:* *sys.path.append(path)* *sys.path.append(path1) * * * *os.environ['DJANGO_S

django and mod_wsgi

2011-02-28 Thread Szabo, Patrick (LNG-VIE)
I'm trying to get my django-app running on apache 2.2 on windows XP. I've installed everything and the Hello Worlf wsgi ran fine. Now i wanted to run my django ap and did the following in a django.wsgi : import os import sys path = 'C:\\Programme\\Apache Software Foundation\\Time2\\

Re: django and mod_wsgi

2010-01-05 Thread Karen Tracey
On Tue, Jan 5, 2010 at 12:01 PM, Karen Tracey wrote: > > More info that might be a clue: if I telnet to blog.corbe.net 80 and type > in GET /, I get a page in response. But that isn't exactly what the browser > is sending, it sends (probably) GET / HTTP/1.1. Adding the HTTP spec after > the GET

Re: django and mod_wsgi

2010-01-05 Thread Angel Cruz
ango/media/" Order allow,deny Options -Indexes Allow from all On Tue, Jan 5, 2010 at 8:39 AM, dcorbe wrote: > Hi, > > I've tried the (relatively straight-forward-looking) steps to get > django and mod_wsgi working together with little success thus far. > I'm tryin

Re: django and mod_wsgi

2010-01-05 Thread Karen Tracey
On Tue, Jan 5, 2010 at 11:39 AM, dcorbe wrote: > Hi, > > I've tried the (relatively straight-forward-looking) steps to get > django and mod_wsgi working together with little success thus far. > I'm trying to run a simple django application from my Apache web > server

django and mod_wsgi

2010-01-05 Thread dcorbe
Hi, I've tried the (relatively straight-forward-looking) steps to get django and mod_wsgi working together with little success thus far. I'm trying to run a simple django application from my Apache web server. The documentation doesn't make it clear whether user= and group= nee