This repository demonstrates how to implement user authentication in a Django web application using the built-in authentication system.
-
Clone the repository:
git clone https://github.com/RajaulAnsari/UserAuthenticationWithDjango.git
-
Navigate to the project directory:
cd UserAuthenticationWithDjango
-
Create a virtual environment (optional but recommended):
python -m venv venv
-
Activate the virtual environment:
- On Windows:
venv\Scripts\activate
- On macOs/Linux
source venv/bin/activate
- On Windows:
-
Install dependencies:
pip install django
-
Apply database migrations:
python manage.py migrate
-
Create a superuser (admin) account:
python manage.py createsuperuser
Follow the prompts to create an admin account.
-
Run the development server:
python manage.py runserver
The application will be accessible at http://127.0.0.1:8000/.
- User registration
- User login
- User profile
- Navigate to the registration page at http://127.0.0.1:8000/create/ to create a new account.
- Log in at http://127.0.0.1:8000/login/ with your credentials.
- Visit your admin pannel at http://127.0.0.1:8000/admin/ with your superuser credentials to view and update your profile information.
If you have any questions or need further assistance, you can contact the repository owner here.
Note: You can modify your code as needed...