Monday, December 14, 2015

application not recognized as URL namespace

In my root url, I have:

url(r'^authentication/', include('authentication.urls')),

in authentication/urls.py, I have no app_name declared.

In a module in authentication, I have

from django.core.urlresolvers import reverse

from django.apps import apps
print('authentication installed? ' + str(apps.is_installed('authentication')))

reverse('authentication:password_change',urlconf='authentication.urls')

and receive
django.core.urlresolvers.NoReverseMatch: 'authentication' is not a registered namespace
while the above debug print gives
authentication installed? True

What am I doing wrong here?

Please advice,
Axel

PGP-Key:29E99DD6 ☀ +49 160 9945 7889 ☀ computing @ chaos claudius

--
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+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/66EBCCB2-1E4F-48AE-B953-52FB2B827612%40Chaos1.DE.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment