Hallöchen!

I cannot get the following working:

In urls.py:

    url(r"^samples/(?P<sample_name>.+)/edit/$", sample.edit),

In the template:

    {% url 'samples.views.sample.edit' sample_name="whatever" %}

I constantly get a NoReverseMatch, even if I pass the view function
with its full path samples.views.sample.edit in urls.py.  I know
that a named url() solves the problem.  Is this the only way if I
use a callable in url() (which will become mandatory in Django 2.0)?

Tschö,
Torsten.

-- 
Torsten Bronger    Jabber ID: torsten.bron...@jabber.rwth-aachen.de
                                  or http://bronger-jmp.appspot.com

-- 
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/87wq4g2cfa.fsf%40physik.rwth-aachen.de.
For more options, visit https://groups.google.com/d/optout.

Reply via email to