Previously, we create an eCommerce website. Now, we will add more functionalities to the website as the following.
These steps will help you complete your task:
-
Create Accounts App
-
Create a templates folder with three HTML pages(login, register, and dashboard).
-
Create urls.py that has a login, register, logout, and dashboard paths.
-
Add the login link to the navigation bar
hint: use these icons: https://icons.getbootstrap.com/
- Add login and register bootstrap
hint: for login use: https://getbootstrap.com/docs/5.2/examples/
- Display an error message if the passwords do not match.
- Display an error message if the user name is taken.
- Display an error message if the email is being used.
- Display a success message if registration is successfully done.
Hint: for alerts, use the following link: https://getbootstrap.com/docs/4.0/components/alerts/