[EMAIL PROTECTED] wrote: > Hello. I'm trying to get Apache to authenticate users using Django's > user database but I'm getting the above error (the whole apache error > log is at the bottom of the message). > > I've set up my project and created users using the Django development > server so the database connection is working from there. > > Hoping that someone can help. > > Kind regards, Stefan Freyr. > > I have added the auth application to my settings.py file: > INSTALLED_APPS = ( > 'django.contrib.auth', > 'django.contrib.contenttypes', > 'django.contrib.sessions', > 'django.contrib.sites', > 'django.contrib.admin', > 'svac.projectmgmt', > ) > > My relevant part of the apache config file looks like this: > Alias /test/ /root/test_www/ > <Directory "/root/test_www"> > Options FollowSymLinks > AllowOverride None > > AuthName "test access" > AuthType Basic > > Require valid-user > > SetHandler python-program > > PythonPath "[r'/root/svac-prj/'] + sys.path" > > # I've tried both ways of setting DJANGO_SETTINGS_MODULE, there > seems to be no difference > #SetEnv DJANGO_SETTINGS_MODULE svac.settings > PythonOption DJANGO_SETTINGS_MODULE svac.settings > > PythonAuthenHandler django.contrib.auth.handlers.modpython > </Directory> > > When I try logging in a user I get a 500 internal server error and the > following is in my apache error log: > [Thu Oct 05 15:46:38 2006] [error] [client 172.23.16.108] > PythonAuthenHandler django.contrib.auth.handlers.modpython: Traceback > ... > [Thu Oct 05 15:46:38 2006] [error] [client 172.23.16.108] > PythonAuthenHandler django.contrib.auth.handlers.modpython: > AttributeError: 'module' object has no attribute 'auth'
Possibly related to this problem: http://issues.apache.org/jira/browse/MODPYTHON-12 If you are using a version of mod_python older than 3.2.7, then upgrade mod_python. Graham --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---