Skip to content

pratham94380/django-auth-project

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Django Secure User Authentication System Project Description This is a secure login and registration system built with Django. It provides a foundational user authentication and data management backend that can be integrated into any web application. The project is designed to be simple, robust, and easily deployable.

Features User Registration with password confirmation.

User Login and Logout.

Redirects to a protected page after successful login.

Secure password hashing provided by Django's built-in authentication system.

Getting Started Prerequisites Make sure you have Python installed on your system. This project was developed with Python 3.9+.

Installation Clone the repository:

git clone https://github.com/your-username/your-repo-name.git cd your-repo-name

Create a virtual environment (recommended):

python -m venv venv

Activate the virtual environment:

On Windows: venv\Scripts\activate

On macOS/Linux: source venv/bin/activate

Install dependencies:

pip install -r requirements.txt

Set up the Django project:

Create the Django project and app structure. This project assumes the project is named my_django_project and the app is named accounts.

django-admin startproject my_django_project . python manage.py startapp accounts

Running the Application Apply migrations:

python manage.py migrate

Create a superuser (optional, for admin access):

python manage.py createsuperuser

Run the development server:

python manage.py runserver

Access the application: Open your web browser and navigate to http://127.0.0.1:8000/.

File Structure The core files for this project are:

my_django_project/settings.py: Main project settings.

my_django_project/urls.py: Main URL configuration.

accounts/views.py: Application logic for registration and login.

accounts/urls.py: App-specific URL configuration.

accounts/templates/registration/: HTML templates for authentication.

accounts/templates/home.html: Homepage for logged-in users.

Feel free to customize the styling and add more features!

About

A simple, secure Django app with all the essential user authentication features: registration, login, logout, and password reset. Perfect for beginners and as a starting point for any project.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages