django 1.4
topapp
urls.py
...
url(r'^shows/', include('shows.urls')),
template
base.html
... {% url shows.views.customers %}
shows
urls.py
..
url(r'^customers/$', 'shows.views.customers')
The above works just fine -- everything is happy except for the deprecation
warning in debug mode.
So I modify base.html and add {% load url from future %} to the top, and
then put single quotes around the argument {% url 'shows.views.customers'
%} and django goes Boom!
"django.core.urlresolvers.NoReverseMatch -- NoReverseMatch: Reverse for ''
with arguments '()' and keyword arguments '{}' not found."
I've become dizzy trying the different methods specified in the docs
including setting a name= attr in the shows/urls.py
url(r'^customers/$', 'shows.views.customers', name='fido')
{% url 'fido' %}
and I get the same message. Other variations tried:
{% url 'shows_views.customers' %} - same error
If someone can help me out,I'd appreciate it.
Best,
Jeff
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/django-users/-/x4uqjgipT9YJ.
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.