On Tue, Feb 25, 2014 at 12:02 PM, DJ-Tom <eventel...@gmail.com> wrote: > Hi, > > currently I'm using the following configuration to host a Django > appliaction: > >> # WSGI Configuration >> <IfModule wsgi_module> >> WSGIScriptAlias /2013/spcmanage "D:/dev/spcmanage/spcmanage/wsgi.py" >> WSGIPythonPath "D:/dev/spcmanage" >> >> <Directory D:/dev/spcmanage> >> <Files wsgi.py> >> Order deny,allow >> Allow from all >> </Files> >> </Directory> >> >> Alias /static "D:/wwwroot/spcmanage/static/" >> </IfModule> > > > Now I need to host the same application for another project, but with a > different database and under a different URL, e.g. > htts://www.domain.com/2014/spcmanage > > But the application from 2013 should be working as well. > > Is it sufficient to just add another WSGIScriptAlias line like below? > > WSGIScriptAlias /2014/spcmanage > "D:/dev/2014/spcmanage/spcmanage/wsgi.py"
Yes > > But what about the alias for the /static directory? > Use different STATIC_ROOT for each site, eg /static2013 and /static2014. But what you should really be doing is putting this in to a separate vhost. Domain names are cheap, sub-domains are even cheaper. Cheers Tom -- 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/CAFHbX1L31A0p6ceLE9nmjmJ1qv4oxf%2BJyhDsiK2Tth%3DU3USbTA%40mail.gmail.com. For more options, visit https://groups.google.com/groups/opt_out.