I have a small Django website which I am trying to run on an Apache
2.2 HTTP-Server. The application is running fine using "python
manage.py runserver". It is also running fine on Apache, except for
the admin site. When I try to go to admin site, I get 500 internal
server error (admin site works perfectly well on development server).

My urls.py file:

from django.conf.urls.defaults import *
from meth.views import *
from settings import *

# Uncomment the next two lines to enable the admin:
from django.contrib import admin
admin.autodiscover()

urlpatterns = patterns('',
    # Example:
    # (r'^meth/', include('meth.foo.urls')),

    # Uncomment the admin/doc line below and add
'django.contrib.admindocs'
    # to INSTALLED_APPS to enable admin documentation:
    (r'^admin/doc/', include('django.contrib.admindocs.urls')),

    # Uncomment the next line to enable the admin:
    (r'^admin/', include(admin.site.urls)),

    # Site urls
    (r'^$', main),
    (r'^prot-desc/(Y[A-Z]{2}\d{3}[A-Z])/$', protein_description),
    (r'^about/$', about),
    (r'^links/$', links),
    (r'^contact/$', contact),
)
# end of urls.py


My httpd.conf file (the end of it):

Alias /meth/media /var/www/meth/media/

<Directory /var/www/meth/media>
Order deny,allow
Allow from all
</Directory>

WSGIScriptAlias /meth /var/www/meth/apache/django.wsgi

<Directory /var/www/meth/apache>
Order deny,allow
Allow from all
</Directory>
# end of httpd.conf

What's wrong with it?
I was googling for a few hours, bud didn't find anything helpful.
I will be grateful for any suggestions.

--~--~---------~--~----~------------~-------~--~----~
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 
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