Hi,
I'm moving my first steps with Rest Framework.
I've started with a basic setup, mostly using default classes like ModelViewSet and DefaultRouter.
Requesting my model-list from the browser, the api.html template is loaded but when it encounters the {% optional_login request %} template tag I get the following error:
| Request Method: |
GET |
| Request URL: |
http://localhost:8000/rest/users/ |
| Django Version: |
1.5.4 |
| Exception Type: |
ValueError |
| Exception Value: |
dictionary update sequence element #0 has length 1; 2 is required |
| Exception Location: |
/home/giova/.virtualenvs/django/local/lib/python2.7/site-packages/django/core/urlresolvers.py in _populate, line 279 |
| Python Executable: |
/home/giova/.virtualenvs/django/bin/python |
The exception happens as indicated in urlresolvers.py but I can't figure out what is causing it.
Thanks for your help,
Giovanni