On Fri, Apr 30, 2010 at 1:25 PM, reduxdj <[email protected]> wrote:
> Hi,
>
> What does this mean? How do I fix it?
>
> The template is the begenning of the error:
>
> 31 {% url django-admindocs-docroot as docsroot %}
>
> Caught SyntaxError while rendering: ('invalid syntax', ('/usr/lib/
> python2.6/dist-packages/django_admin_tools-0.2.0-py2.6.egg/admin_tools/
> dashboard/urls.py', 4, 52, " (r'^get_preferences/$',
> 'get_preferences', name='admin-tools-dashboard-get-preferences'),\n"))
>
(Strictly speaking this is Python throwing an error, not Django; what you
have is illegal Python code.) You have a url pattern specified as a tuple,
but have tried to use keyword syntax for the name argument. You can only use
keyword (name=) syntax if you specify the url pattern using the url()
fuction: http://docs.djangoproject.com/en/dev/topics/http/urls/#url
Karen
--
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.