1
Django will use the first URL pattern that matches. So in your urls.py
, add a pattern for accounts/login
before you include the urls from django-registration. All other URLs will be handled by django-registration.
1
You could try explicitly catching the accounts/login
url request before it hits your more general accounts/*
url catcher.
Maybe
# first catch your custom login
url(r'^accounts/login', include('my_custom_login.urls')),
# and everything else beginning with accounts/
url(r'^accounts/', include('registration.backends.default.urls')),
- [Answered ]-What JSON parser does Django Fixture Loading Use
- [Answered ]-Change verbose_name for is_superuser Django
- [Answered ]-Comments in django
Source:stackexchange.com