Django version 1.1.1 I have a custom dashboard view that is set to override the default of Django adrada:
(r '^ admin / $', 'dashboard.views.dashboard'), (r '^ admin /', include (admin.site.urls)), Dashboard view certifies with the @staff_member_required decorator
This super user is working fine with all users with permission, but when the user only gets the status of the staff member I have been trying to log in with a 500 server error: <[Sun July 18 12:36:59 2010] [Error] [client 127.0.0.1] mod_wsgi (pid = 13815): Exception WSGI script '/ home / ___________ / _site.wsgi' [Sun July 18 12:36:59 2010] [Error] [customer 127.0.0.1] Traceback (most recent call last): [Sun July 18 12:36:59 2010] [Error] [customer 127.0.0.1] File "/ Home / ./ Lib / python2.5 / django / core / handler / wsgi.py", line 245, __call__ [Sun July 18 12 : 36: 59 2010] [Error Ti] [customer 127.0.0.1] response = moderate_method (request, response) [sun July 18 12:36:59 2010] [error] [client 127.0.0.1] file "/ home / ... .. / lib / python2 .5 / Django / contrib /sessions/middleware.py ", line 26, process_crop [sun July 18 12:36:59 2010] [error] [client 127.0.0.1] patch_vorie_headers (feedback, ('cookie',)) [Sun 18 July 12: 36:59 2010] [error] [client 127.0.0.1] file "/ home / ... / lib / python2.5 / django / utils / cache.py", line 130, patch_vorie_headers [sun 18 July 12:36:59 2010] [error] [Client 127.0.0.1] If response.has_header ('Vary'): [Sun July 18 12:36:59 2010] [Error] [Client 127.0.0.1] Attribute Attribute: There is no attribute in the 'QuerySet' object 'header_header '
I get the same error when the user @logi N_required as well any thoughts on this?
Thank you
Perhaps you should clear your browser cookies and logout properly , Both in your public logout url and in the administrator logout url. I think normal users open sessions and employee users open to another, so there is no good idea to mix both in one app.
Comments
Post a Comment