The path to my login template after registration is incorrect, but the path to the registration template in the same directory is correct, I don't understand why.

15 views
Skip to first unread message

Anthony Orona

unread,
May 12, 2018, 4:59:28 PM5/12/18
to Django users

I set up user registration by subclassing generic.CreateView in an app called Accounts. and I then set up my urls using django.contrib.auth.urls. I can register a user but when I try to redirect to the login page, I get this error: 

    ~/<user>/workspace/web/goldrush/gr_backend/templates/registration/login.html (Source does not exist)

I don't understand why and I have been fiddling with this for an hour to no avail. 

The Accounts App, my settings, and project-level urls are available at: [this link](https://github.com/Ajorona/ecommercedjango) to my github. I am not going to put this project into production so I left my project secret key visible ¯\_(ツ)_/¯. Can someone help me understand how to correctly configure my templates for the Accounts App? I am using a project-level templates directory.

Jason

unread,
May 12, 2018, 9:02:43 PM5/12/18
to Django users
here is no templates folder in the gr_backend package.  nor are there any template directories or files in that repository
Reply all
Reply to author
Forward
0 new messages