On 2/28/07, MattW <[EMAIL PROTECTED]> wrote: > > Dear All, > > I am trying to use the users/ authentication framework supplied with > Django. I wrote something very simple myself, but would arther use the > bundled system. > > I have a urls.py file with: > > (r'^login/$', login), > (r'^logout/$', logout), > [SNIP] > > AttributeError at /login/ > 'function' object has no attribute 'rindex' > Request Method: GET > Request URL: http://localhost:8000/login/ > Exception Type: AttributeError > Exception Value: 'function' object has no attribute 'rindex' > Exception Location: /usr/lib/python2.4/site-packages/Django-0.95- > py2.4.egg/django/core/urlresolvers.py in get_mod_func, line 23 > Traceback (innermost last) > Switch back to interactive view
Are you using a packaged version of django (egg/tarball) or the development version from svn? It looks like you're using a new feature (passing functions instead of strings into url confs) that is only supported in the development version. 0.96 will have this feature though and should be out within the next few days. Joseph --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

