def lockIndex(req):
print '---------lockIndex--------------'
from django.conf import settings
print req.user
print settings.LOGIN_URL
print '---------lockIndex--------------'
return render_to_response('lockIndex.html')
---------lockIndex--------------
admin
/accounts/login/
---------lockIndex--------------