Perfect, exactly what I've been looking for. Thanks! One other question that I haven't really been able to find a straight answer on: what am I actually supposed to replace myproject.settings with? Some people seem to be saying that it needs to be the path to the settings.py file for my project, is that the case? What should the path be relative to?
On Jan 3, 4:05 pm, Katie Lohrenz <[EMAIL PROTECTED]> wrote: > Hi, Josh. I'm on a (dv) server, too. > > You're right that it's a vhost.conf file that you need to edit. If you > edit the httpd.conf or httpd.include, it'll be overwritten by Plesk > next time you change settings in Plesk or when (mt) runs periodic > server updates. > > Create a file called vhost.conf in /var/www/vhosts/YOURDOMAIN.COM/ > conf/ (There should already a file called httpd.include in this > folder). After that, I had to resave my domain settings in Plesk to > get Plesk to recognize my vhost file. Alternatively, you can add this > line before the </VirtualHost> line in your httpd.include file: > > Include /var/www/vhosts/YOURDOMAIN.COM/conf/vhost.conf > > Then all your settings get added to vhost.conf. My file looks > something like: > > SetHandler python-program > AddHandler mod_python .py > > PythonPath "['/path/to/django'] + sys.path" > PythonHandler django.core.handlers.modpython > SetEnv DJANGO_SETTINGS_MODULE myproject.settings > PythonDebug Off > > <Location "/admin-media"> > SetHandler None > </Location> > > Also, if you ever want to set up django for a subdomain, create a > vhost.conf file in /var/www/vhosts/YOURDOMAIN.COM/subdomains/SUBDOMAIN/ > conf/ > > On Jan 3, 2:30 pm, Josh Ourisman <[EMAIL PROTECTED]> wrote: > > > Is there any good howto on setting up Django on a MediaTemple (dv) > > server? Up until now I've been running various Django-powered sites > > from Dreamhost. Now I'm migrating all my hosting over to MediaTemple, > > but I don't seem to be able to get Django running properly. I'm stuck > > at the point where you have to edit your httpd.conf, although various > > searches have lead me to believe that there may be a vhosts.conf file > > hanging around somewhere that's what I actually want to be working > > with? > > > Anyway, I just need to be able to set it up so that browsing > > towww.sampledomaina.comtakesyou to a particular Django project, while > > browsing to other domains that are hosted on the same server continue > > to take you to the appropriate non-Django sites. Can anyone help me > > out? > > > Thanks. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to [email protected] 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 -~----------~----~----~----~------~----~------~--~---

