I still have a problem although here is my appache file
<VirtualHost *:80>
DocumentRoot /var/www/mysite
ServerName mysite.com
ErrorLog logs/mysite.com-error_log
CustomLog logs/mysite.com-access_log common
SetHandler python-program
PythonHandler django.core.handlers.modpython
PythonPath "['/var/www/mysite/'] +sys.path"
SetEnv DJANGO_SETTINGS_MODULE mysite.settings
PythonDebug On
</VirtualHost>
but i still have this error when i browse my website
EnvironmentError: Could not import DJANGO_SETTINGS_MODULE
'Grill23.settings' (is it on sys.path?): No module named
Grill23.settings
If u can help i ll appretiate that a lot
Mary Adel
Software Developper
ITrize-Egypt 13 Naguib Hashad medan elhegaz heliopolis
email: [EMAIL PROTECTED]
Office: +202 - 6236612 EXT. 102
Mobile: +2012 5241719
> -------- Original Message --------
> Subject: Re: appache and pthonpath
> From: Max Battcher <[EMAIL PROTECTED]>
> Date: Tue, January 24, 2006 8:01 am
> To: [email protected]
>
> [EMAIL PROTECTED] wrote:
> > my Django proeject is not in the sitepackages it is in /var/www/mysite
>
> First of all, it isn't a good practice to store a python web application
> under /var/www. This can pose a potential security risk.
>
> > PYTHONPATH "['/var/www/mysite']"
>
> Could be you are looking for:
>
> PythonPath "['/var/www/mysite'] + sys.path"
>
> > DocumentRoot /var/www/mysite/
>
> This also isn't a good practice, as again it can pose a security risk
> that is better off avoided.
>
> --
> --Max Battcher--
> http://www.worldmaker.net/
> "History bleeds for tomorrow / for us to realize and never more follow
> blind" --Machinae Supremacy, Deus Ex Machinae, Title Track