What is the right way to require a user be authenticated when using the
databrowse module?  I tried adding @login_required decorators to both
functions in databrowse.views, but that did not work -- it appears
databrowse does not presently use its views.py.  I also tried decorating
databrowse.DatabrowseSite.root with @login_required, but it threw this
exception:

Traceback (most recent call last):
File "c:\opt\Python25\Lib\site-packages\django\core\handlers\base.py" in
get_response
  77. response = callback(request, *callback_args, **callback_kwargs)
File
"c:\opt\Python25\lib\site-packages\django\contrib\databrowse_jm\sites.py" in
root
  120. return self.index(request)
File "c:\opt\Python25\Lib\site-packages\django\contrib\auth\decorators.py"
in _checklogin
  16. if test_func(request.user):

  AttributeError at /databrowse/
  'DatabrowseSite' object has no attribute 'user'

Can someone point me in the right direction?

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" 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-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to