Thursday, March 29, 2012

Problems with {% url %} in templates

I'm very confused… this has worked fine in the past. Django 1.3.1

In myproject/

urlpatterns = patterns('',
(r'^d/events/(.*)$', include('')),

in myproject/events/ :

urlpatterns = patterns('',
url(r'^add/$', 'add_view', name="event-add"),


{% url events.views.add_view %}


{% url event-add %}


Caught NoReverseMatch while rendering: Reverse for 'event-add' with arguments '()' and keyword arguments '{}' not found.

(Or "Reverse for '', as appropriate.)

This must be something absurd… anyone see what I'm missing? Think I've been up too long.



You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to
To unsubscribe from this group, send email to
For more options, visit this group at

No comments:

Post a Comment