Tim wrote: > I've got a couple Django apps running on Plesk. It's not the greatest > but it works. > > First, after you set up your subdomain, you'll need to create the > file: > /var/www/vhosts/ domain.fr/subdomains/django/conf/vhost.conf > > Here's the contents of mine: > ------ > DocumentRoot /var/www/django_projects/myproject > > <Location "/"> > SetHandler python-program > PythonHandler django.core.handlers.modpython > SetEnv DJANGO_SETTINGS_MODULE myproject.settings > PythonPath "['/var/www/django_projects'] + sys.path" > PythonDebug On > </Location> > > <Location "/media/"> > Options +Indexes > SetHandler none > </Location> > ------ > It's a bit of a more general question really, but does this sort of set up work OK, where you send '/' to django but have a sub-path of that served straight from the disk? I need to do something like this to serve my media files when I take my project live, but I was worried it would mean at some point having to create a separate IP address and virtual host to run a server on, rather than just serving everything from the same path.
--~--~---------~--~----~------------~-------~--~----~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---