> Okay, so whenever I request anything through my apache server I get a
> 404 error. Here are my configuration files.
>
> Apache:
> <VirtualHost *>
> DocumentRoot /home/chainsofheaven.net/html
> ServerName chainsofheaven.net
> ServerAlias *.chainsofheaven.net
> <Directory "/home/chainsofheaven.net/html">
> allow from all
> Options +Indexes
> </Directory>
> <Location "/">
> SetHandler python.program
> PythonHandler django.core.handlers.modpython
> SetEnv DJANGO_SETTINGS_MODULE html.settings
> PythonDebug On
> PythonPath "['/home/chainsofheaven.net/html', '/usr/lib/python2.4/ 
> site-
> packages'] + sys.path"
> </Location>
> </VirtualHost>

Not sure if this will solve your problem, but it appears you have some  
settings in your httdp.conf file that may clash, such as the  
DocumentRoot (which would normally serve static html files) being the  
same as the place where your Django apps live.
Also, you have DJANGO_SETTINGS_MODULE set to html.settings. I don't  
know your where that file is, but if it's /home/chainsofheave.net/html/ 
settings.py , then Django is not going to find it: it will search for / 
home/chainsofheave.net/html/html/settings.py instead, since /home/ 
chainsofheave.net/html is in your Python Path. So your Python Path  
should also include the directory above that (cf the basic  
configuration example in the docs, which even has settings.py in an  
entirely different place).

 From the log, it looks like Apache wants to show the directory  
listing of your DocumentRoot. If that's what you want, Jared  
suggestion may be correct, although a clash with Django/mod_python is  
also likely. If you want Django to serve your base URL, then the above  
should probably be corrected (and perhaps the DocumentRoot be moved as  
well).


> urls.py:
> from django.conf.urls.defaults import *
>
> urlpatterns = patterns('',
>    # Example:
>    # (r'^html/', include('html.foo.urls')),
>
>    # Uncomment this for admin:
>     (r'^admin/', include('django.contrib.admin.urls')),
> )
>
>
> The error.log entries generated:
> [Mon Apr 07 09:35:15 2008] [notice] SIGHUP received.  Attempting to
> restart
> [Mon Apr 07 09:35:15 2008] [notice] mod_python: Creating 8 session
> mutexes based on 150 max processes and 0 max threads.
> [Mon Apr 07 09:35:15 2008] [notice] mod_python: using  
> mutex_directory /
> tmp
> [Mon Apr 07 09:35:15 2008] [notice] Apache/2.2.3 (Debian) mod_python/
> 3.2.10 Python/2.4.4 PHP/5.2.0-8+etch10 configured -- resuming normal
> operations
> [Mon Apr 07 09:35:17 2008] [error] [client 68.34.229.145] Attempt to
> serve directory: /home/chainsofheaven.net/html/
>
>
> I'm not sure what the problem is here. At this point I have nothing
> deployed except the admin interface.
> >


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to