Hi,
I have been learning Django and came across this problem
I am trying to access django apps from apache2 but it just wont work :
(
Here is what i did:
added in /usr/local/apache2/conf/extra/httpd-info.conf:
<Location "/mysite/">
SetHandler python-program
PythonHandler django.core.handlers.modpython
PythonPath "['/usr/local/apache2/htdocs/'] + sys.path"
SetEnv DJANGO_SETTINGS_MODULE mysite.settings
SetEnv PYTHON_EGG_CACHE "/var/cache/www/pythoneggs"
PythonDebug Off
PythonAutoReload Off
</Location>
cd /usr/local/apache2/htdocs
ln -s /home/user/workspace/gui/src/mysite mysite
I started the server.
it can access url.py because if i give mysite/rubbish it says The
current URL, /mysite/rubbish/, didn't match any of these.
it can access functions in mysite.views because mysite/time works
fine.
However it cannot access mysite.books.views as even the simplest
functions returns nothing.
Meanwhile python manage.py runserver works perfectly fine.
Please help!!!
Regards,
cavebird
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---