Hello Collin,
Yes, commenting out the check_password line fixes the problem. On settings, I'm importing User from django.contrib.auth.models. I discovered that commenting out that stops the ImportError. However, the authentication doesn't happen when I visit my secret location. Apache simply shows its content. I followed the cited guide closely, here is the relevant part of my apache configuration:
###
LoadModule authz_user_module modules/mod_authz_user.so
LoadModule auth_basic_module modules/mod_auth_basic.so
LoadModule wsgi_module modules/mod_wsgi.so
<Directory "/srv/http">
Options Indexes FollowSymLinks
AllowOverride None
Require all granted
</Directory>
Alias /dav /srv/http/dav
<Location "/dav">
AuthType Basic
AuthName "Top Secret"
Require valid-user
AuthBasicProvider wsgi
WSGIAuthUserScript /path/to/django/project/wsgi.py
</Location>
I understand that, when hitting
http://localhost/dav/, my django's project credentials should be asked by the page. What can be happeing?
Thanks,
H.