|
Integrating Django Into Apache
I'm working through Django examples in the Django Visual Quickpro Guide. Those are working out nicely, but I am having trouble integrating this into my Apache server.
Does any one have samples as to how to do this?
The thing that perplexes me the most is the admin site formats nicely using the built-in web server, but displays flat accessing in Apache.
Here's my current apache2.conf config corresponding to the django application:
Listen 8586
<VirtualHost _default_:8586>
<Location "/">
SetHandler python-program
PythonHandler django.core.handlers.modpython
SetEnv DJANGO_SETTINGS_MODULE chapter4.settings
PythonOption django.root /home/amr/web/django/chapter4
PythonPath "['/home/amr/web/django/'] + ['/home/amr/web/django/favorites/'] + sys.path"
PythonDebug On
</Location>
</VirtualHost>
|