also, when I change the virtual host path to: /srv/www/brooski.net
(instead of /srv/www/brooski.net/brooski/) I get an internal server
error. Whereas with '/srv/www/brooski.net/brooski/' I get the actual
django error page....

On Aug 26, 4:20 pm, Joel Klabo <joelkl...@gmail.com> wrote:
> on my VPS i have my project at: /srv/www/brooski.net/brooski/(all my
> files, settings.py, url.py are here)
>
> and my VirtualHost is setup like this:
>
> <VirtualHost brooski.net:80>
>         ServerAdmin r...@brooski.net
>         ServerName brooski.net
>         ServerAliaswww.brooski.net
>         DocumentRoot /srv/www/brooski.net/public_html/
>         PythonPath "['/srv/www/brooski.net/brooski', '/usr/lib/
> pymodules/python2.6/'] + sys.path"
>         <Location "/">
>                 SetHandler python-program
>                 PythonHandler django.core.handlers.modpython
>                 SetEnv DJANGO_SETTINGS_MODULE settings
>                 PythonDebug Off
>         </Location>
>
>         ErrorLog /srv/www/brooski.net/logs/error.log
>         CustomLog /srv/www/brooski.net/logs/access.log combined
> </VirtualHost>
>
> And when i goto brooski.net i get the django error page saying:
>
> ImportError at /
> No module named brooski.urls
>
> So, I tried going and removing the 'brooski.' everywhere in my project
> and that got me through a bunch of similar errors but I eventually got
> one where it was using 'brooski.net' as my module name and it was
> causing a problem.
>
> Basically I don't know how to set up this structure, am I doing
> something wrong? Thanks for any advice, and please don't use my
> sensitive information against me...

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to