Hi everyone.
Forgive my trivial question.
I would like to match the empty url (" ") to the Django login page from “django.contrib.auth.urls”.
In this way, every time the website is opened, the first page will immediately be the login page.
How can I do?
Thanks a lot to everyone.
Two basic options:
One, find the name of the view that you want to use. See Using the Django authentication system | Django documentation | Django.
Then assign that view to the empty url. (Yes, you can have the same view assigned to multiple URLs)
Two, assign the empty url to a RedirectView to redirect the browser to your login url.