List Info

Thread: New versions of django break login_required




New versions of django break login_required
user name
2006-07-28 19:03:51
Revision 3461 breaks down my app oddly. Somehow I'm able to
access some
of the views (general views) but when I use a view in my
app, I get:

Exception Type:  	TypeError
Exception Value: 	readonly attribute
Exception Location:
	/usr/lib/python2.3/site-packages/Django-0.95-py2.3.egg/djan
go/contrib/auth/decorators.py
in _dec, line 18

Traceback (most recent call last):
File
"/usr/lib/python2.3/site-packages/Django-0.95-py2.3.eg
g/django/core/handlers/base.py"
in get_response
  65. callback, callback_args, callback_kwargs =
resolver.resolve(path)
File
"/usr/lib/python2.3/site-packages/Django-0.95-py2.3.eg
g/django/core/urlresolvers.py"
in resolve
  147. sub_match = pattern.resolve(new_path)
File
"/usr/lib/python2.3/site-packages/Django-0.95-py2.3.eg
g/django/core/urlresolvers.py"
in resolve
  112. self.func = self.get_callback()
File
"/usr/lib/python2.3/site-packages/Django-0.95-py2.3.eg
g/django/core/urlresolvers.py"
in get_callback
  118. return getattr(__import__(mod_name, '', '',
['']), func_name)
File
"/home/hukka/work/programs/django/teekkarikyla/../teek
karikyla/kirjasto/views.py"
in ?
  54. add_book = login_required(add_book)
File
"/usr/lib/python2.3/site-packages/Django-0.95-py2.3.eg
g/django/contrib/auth/decorators.py"
in _dec
  18. _checklogin.__name__ = view_func.__name__

  TypeError at /accounts/verify/
  readonly attribute

If I reload the page, the error changes into:
Exception Type:  	ViewDoesNotExist
Exception Value: 	Tried verify in module
teekkarikyla.kirjasto.views.
Error was: 'module' object has no attribute 'verify'
Exception Location:
	/usr/lib/python2.3/site-packages/Django-0.95-py2.3.egg/djan
go/core/urlresolvers.py
in get_callback, line 122

I can get back to TypeError by restarting my server. Running
Django on
the internal server on Debian unstable's Python2.3.


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "Django users" group.
To post to this group, send email to django-usersgooglegroups.com
To unsubscribe from this group, send email to
django-users-unsubscribegooglegroups.com
For more options, visit this group at http://gr
oups.google.com/group/django-users
-~----------~----~----~----~------~----~------~--~---

[1]

about | contact  Other archives ( Real Estate discussion Medical topics )