I would like to deploy multiple django projects that are either completely 
unrelated, but deploy them on the same server running apache.  I am not a 
savvy apache administrator and our small company does not have one.  The 
use of virtualenv is probably a good idea, but not mandatory in that we 
have a pretty common set of extensions for all projects.  Can you point me 
to a good starting point on how to set this up?  I don't know if the 
"location" directives are appropriate or if I should create virtual servers 
in the httpd.conf file.  I'm in a little over my head and don't have any 
resources I can go to in my company.

Thanks,

Fred.

On Thursday, November 19, 2009 at 7:55:38 PM UTC-5, Graham Dumpleton wrote:
>
>
>
> On Nov 20, 4:33 am, Stodge <sto...@gmail.com> wrote: 
> > I got this working with several sites using Apache. I just created a 
> > configuration file for each site and pointed it to different settings 
> > files: 
> > 
> > <Location "/test/"> 
> >     SetHandler python-program 
> >     PythonHandler django.core.handlers.modpython 
> >     SetEnv DJANGO_SETTINGS_MODULE test.settings 
> >     PythonOption django.root /test 
> >     PythonDebug On 
> >     PythonPath "['/var/www/test'] + sys.path" 
> >     PythonAutoReload On 
> > </Location> 
> > 
> > <Location "/fred/"> 
> >     SetHandler python-program 
> >     PythonHandler django.core.handlers.modpython 
> >     SetEnv DJANGO_SETTINGS_MODULE fred.settings 
> >     PythonOption django.root /fred 
> >     PythonDebug On 
> >     PythonPath "['/var/www/fred'] + sys.path" 
> >     PythonAutoReload On 
> > </Location> 
> > 
> > Something like this I think. 
>
> Missing PythonInterpreter directive in each to force each to run in 
> separate Python sub interpreter. 
>
> Graham 
>
> > On Nov 19, 12:23 pm, Mark Freeman <m...@timewasted.net> wrote: 
> > 
> > 
> > 
> > > I currently have a working site running Django and now want to move a 
> > > couple of other of my sites to Django as well. I'm in the process of 
> > > moving off a hosted VPS to my own local server, where the existing 
> > > Django site is. 
> > 
> > > My questions is more of best practice when deploying multiple sites to 
> > > the same server. Given that I have a running site, is it possible to 
> > > deploy multiple Django 'projects' to the same server and just use 
> > > Apache to serve them out separately or is it best to use the sites 
> > > module to do this from the same project? For code cleanliness, I would 
> > > prefer to have them as separate projects, but I don't want to kill 
> > > server performance either. 
> > 
> > > Thanks for any suggestions!- Hide quoted text - 
> > 
> > - Show quoted text - 
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/06a28874-4060-4d1a-b3c5-4b038cc2c3da%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to