I'm trying to use the django-voting tutorial from this blog:
http://new.justinlilly.com/blog/2008/nov/04/django-voting-a-brief-tutorial/
to get a simple up/down voting system working on an app of mine. But just like the first commenter from that post, this code in urls.py:
urlpatterns = patterns('',
url(r'^(?P[-\w]+)/(?Pup|down|clear)vote/?$', vote_on_object, tip_dict, name="tip-voting"),
)
Gives me this error:
unknown specifier: ?P[
I'm terrible w/ regular expressions, anyone have an idea of how to fix that url?