This is a Django user authentication project that allows users to sign up, log in, and manage their accounts. It provides a basic user authentication system that you can use as a starting point for more complex web applications that require user management.
- User Registration: Users can sign up with a unique username and email address.
- Login: Registered users can log in with their credentials.
- Logout: Users can log out of their accounts.
- Password Reset: Password reset functionality is provided for users who forget their passwords.
- Account Management: Users can update their account information and change passwords.
To run this project locally on your machine, follow the instructions below.
Make sure you have the following installed on your system:
- Python (3.6 or higher)
- Django (3.0 or higher)
-
Clone this repository to your local machine using the following command:
git clone https://github.com/your-username/django-user-authentication.git
-
Navigate to the project directory:
cd django-user-authentication
-
Create a virtual environment to isolate the project's dependencies:
python -m venv venv
-
Activate the virtual environment:
-
For Windows:
venv\Scripts\activate
-
For macOS and Linux:
source venv/bin/activate
-
-
Install the required packages:
pip install -r requirements.txt
-
Run database migrations:
python manage.py migrate
-
Create a superuser account (to access the Django admin panel):
python manage.py createsuperuser
To start the development server, run the following command:
python manage.py runserver
Visit http://localhost:8000/
in your web browser to access the application.
To access the Django admin panel and manage users and other data, go to http://localhost:8000/admin/
and log in using the superuser credentials created during installation.
You can extend this project by adding more views and functionality as per your requirements. Refer to the official Django documentation for more information.
We welcome contributions to this project. If you find any issues or have suggestions for improvements, please create a pull request. Before submitting a pull request, make sure to discuss major changes with the project maintainers.
This project is licensed under the MIT License. Feel free to use, modify, and distribute it as per the terms of the license.
Thank you for using our Django User Authentication Project! If you have any questions or need further assistance, please don't hesitate to contact us or open an issue on GitHub.