Build Django Required Login Apps with Custom Login-Logout Page

With unsecure page, secure page, custom login page and custom logout page
INSTALLED_APPS in myproject/settings.py
os.path.join(BASE_DIR, 'myapp', 'templates')
TEMPLATES in myproject/settings.py
myapp/templates/base.html
myapp/templates/login.html
myapp/templates/logout.html
myapp/templates/secure.html
myapp/templates/unsecure.html
myapp/views.py
myapp/urls.py
myproject/urls.py
LOGIN_URL = '/login/'LOGIN_REDIRECT_URL = '/secure'
http://127.0.0.1:8000/unsecure
http://127.0.0.1:8000/secure
secure page
logout page

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store