[Answered ]-Overiding URL pattern from a third party app

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')), 

Leave a comment