Sorry got posted before I finished.
Let me start again.
I have a view function defined like this:
my_view(request, uuid, backend=None)
my urls.py have this:
UUID_PATTERN = r'(?P<uuid>[A-Za-z0-9_-]{22})'
BACKEND = r'(?P<backend>[a-z])'
url(r'^my/view/%s/%s/$' % (UUID_PATTERN, BACKEND),
'my_view', name='my_view_backend'),
url(r'^my/view/%s/$' % UUID_PATTERN,
'my_view', name='my_view'),
I am reversing using the following syntax:
reverse('my_view_backend', args=['oUEwFLybQJWruvJPmZLtnw', 'mybackend'])
this should match the first pattern but I keep getting a NoReverseMatch exception. I am aware that I am missing something simple but I am not sure what.
TIA,
nav