Currently, in my settings module I have this:
LOGIN_URL = '/login'
If I ever decide to change the login URL in urls.py, I’ll have to change it here as well. Is there any more dynamic way of doing this?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Settings IS where you are setting your dynamic login url. Make sure to import
LOGIN_URLfromsettings.pyin yoururls.pyand use that instead.