Registration Link issue


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,
path(‘profiles//edit/’, views.edit_profile,

Am I overlooking something? Thanks!


For some reason its being redirected back to home. From the server:

[24/Aug/2018 15:07:49] "GET /accounts/register/ HTTP/1.1" 302 0


Figured it out. Misspelling on the base.html page.

Gotta get used to the debugging process again!


Woo! Sorry for the delayed response, am in Australia. Glad you figured it out!