This repository contains a basic authentication system built using Django. The system includes essential features such as user login, signup, change password, and reset password.
- Login: Users can log in to their accounts using their credentials.
- Signup: New users can create an account by providing necessary information.
- Change Password: Logged-in users can change their password.
- Reset Password: Users can reset their password if they forget it.
- Python 3.x
- Django 3.x or higher
-
Clone the repository:
git clone https://github.com/hafizabdullah1/django-basic-auth-system.git cd django-basic-auth-system
-
Create and activate a virtual environment:
python -m venv venv source venv/bin/activate # On Windows use `venv\Scripts\activate`
-
Apply migrations:
python manage.py migrate
-
Create a superuser to access the admin panel:
python manage.py createsuperuser
-
Run the development server:
python manage.py runserver
-
Open your browser and navigate to
http://127.0.0.1:8000
to see the application.
- Login: Navigate to
/accounts/login/
to access the login page. - Signup: Navigate to
/accounts/signup/
to access the signup page. - Change Password: Navigate to
/accounts/password_change/
(available after logging in). - Reset Password: Navigate to
/accounts/password_reset/
to reset your password.
Contributions are welcome! Please create an issue or submit a pull request.
Feel free to modify and extend this basic auth system to fit your specific needs.
Happy coding! 🎉