On Thursday, 12 December 2013 13:33:47 UTC, MikeKJ wrote:
>
> Warning: This is a port from 0.97 to 1.3.7 (thanks DR)
>
> The front end of the site is working just the admin is being difficult
> SyntaxError at /admin/honorary/member/ 
>
> invalid syntax (urls.py, line 10)
> location
> /home/paston2/webapps/sevenkbw/lib/python2.7/django/utils/importlib.py in 
> import_module, line 35
>
> requested url http://7kbw.paston2.webfactional.com/admin/honorary/member/
>
> looking at the traceback and the local vars within it appears that the admin 
> is having a problem with sitename.urls
> this is the urls.py
>
> <snip>
>
>
Here is line 10:

    (r'^admin/auth/user/(?P<user_id>\d+)/activate/$','
userprofile.admin-views.activate_user', name="user_activate"), 

In order to use the `name` kwarg you need to make this URL a call to the 
`url()` function:

    url(r'^admin/auth/user/(?P<user_id>\d+)/activate/$','
userprofile.admin-views.activate_user', name="user_activate"), 

The same is true for the other lines where you use `name`.
--
DR.

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/98721b0b-d9e7-42bd-8543-149164967be0%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to