#10809: mod_wsgi authentication handler
---------------------------------------------+------------------------------
Reporter: baumer1122 | Owner: nobody
Status: new | Milestone:
Component: Authentication | Version: SVN
Resolution: | Keywords: mod_wsgi
Stage: Design decision needed | Has_patch: 1
Needs_docs: 1 | Needs_tests: 0
Needs_better_patch: 1 |
---------------------------------------------+------------------------------
Comment (by grahamd):
David. The mod_wsgi package does not need to be changed. You just need to
have the value of DJANGO_SETTINGS_MODULE be specified in the
authentication script file. Same with any Python module search path that
needs to be set.
{{{
import sys
sys.path.append(...)
import os
os.environ['DJANGO_SETTINGS_MODULE'] = 'mysite.settings'
def check_password(environ, user, password):
...
}}}
The SetEnv variables are not passed to the authentication scripts because
they are executed during an earlier phase than when SetEnv variables are
pushed into request environment by Apache.
--
Ticket URL: <http://code.djangoproject.com/ticket/10809#comment:6>
Django <http://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---