Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fix Trac auth handler.

Thanks Bruno Renié for reporting this problem.
  • Loading branch information...
commit 01b5ef5f0bf7360304938064f1b7a1cb628b0043 1 parent a04d459
@aaugustin aaugustin authored
Showing with 7 additions and 0 deletions.
  1. +4 −0 TODO
  2. +3 −0  tracdb/wsgiauth.py
View
4 TODO
@@ -3,3 +3,7 @@
not starting with django_
* sitemaps look outdated — /documentation/0_90/ really?
* some apps don't have tests
+
+After upgrading to 1.5:
+* use the built-in wsgi auth handler for trac, remove tracdb.wsgiauth
+ https://docs.djangoproject.com/en/1.5/howto/deployment/wsgi/apache-auth/#authentication-with-mod-wsgi
View
3  tracdb/wsgiauth.py
@@ -1,5 +1,8 @@
# WSGI auth handlers for Trac
+import os
+os.environ['DJANGO_SETTINGS_MODULE'] = 'django_www.settings'
+
from django import db
from django.contrib.auth.models import User
Please sign in to comment.
Something went wrong with that request. Please try again.