Ticket #2903: modpython.patch

File modpython.patch, 448 bytes (added by mario__, 18 years ago)
Line 
1*** modpython.py 2006-10-11 19:47:39.899274512 -0400
2--- mymodpython.py 2006-10-11 20:18:23.004079992 -0400
3***************
4*** 20,25 ****
5--- 20,27 ----
6 settings_module = options.get('DJANGO_SETTINGS_MODULE', None)
7 if settings_module:
8 os.environ['DJANGO_SETTINGS_MODULE'] = settings_module
9+ else:
10+ return apache.HTTP_UNAUTHORIZED
11
12 from django.contrib.auth.models import User
13 from django import db
Back to Top