Register Form, View, and Template
Learn how to create a registration page so that people can sign up.
We'll cover the following...
We'll cover the following...
Now that we have our login page, we need to provide a way for users to register and create accounts on the website.
Register URL path
Every time we create a new page, we need to add its URL in urls.py. We added the Register URL path in line 9 in urls.py as shown in the widget below.
"""
ASGI config for example project.
It exposes the ASGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.0/howto/deployment/asgi/
"""
import os
from django.core.asgi import get_asgi_application
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'example.settings')
application = get_asgi_application()
Demo of the Register page
Register form
To start registering users, we will create a form, so that people can sign up. We will follow the same ...