Learn how to implement user authentication in Django with step-by-step instructions
First, create a new Django project and app if you haven't already:
Create the following directory structure for templates:
Create a base.html template for common structure to avoid code repetition.
একটি base.html টেমপ্লেট তৈরি করুন যাতে common structure থাকে, code repetition এড়ানোর জন্য
Create the signup.html file:
Create the login.html file:
Add the signup function to your views.py:
Configure URLs in your urls.py file:
Make sure to configure your settings.py properly:
নিচের commands গুলো run করে test করুন: (Run the following commands to test:)
এরপর browser এ গিয়ে http://127.0.0.1:8000/signup/ এ visit করে signup test করুন (Then visit http://127.0.0.1:8000/signup/ in your browser to test signup)