I’ve recently returned from a django hiatus and and redeveloping a site from scratch. I’ve made it to Chapter 10 “Adding a Registration Page” and I’ve hit an issue.
I’ve done everything by the book and haven’t gotten any bugs or error pages but when I click on the register link from any page (home/about/contact) it brings me back home.
If I remove LOGIN_REDIRECT_URL then I get an error page when I click the register link saying:
Page not found (404)
Request Method: GET
Request URL: http://localhost:8000/accounts/profile/
I know that’s not the URL pattern. Below is the Urls addition:
path(‘profiles//’, views.profile_detail,
name=‘profile_detail’),
path(‘profiles//edit/’, views.edit_profile,
name=‘edit_profile’),
path(‘accounts/’,
include(‘registration.backends.simple.urls’)),
path(‘admin/’, admin.site.urls),
Am I overlooking something? Thanks!