Skip to content

Latest commit

Β 

History

History
95 lines (80 loc) Β· 2.3 KB

File metadata and controls

95 lines (80 loc) Β· 2.3 KB

Django Authentication System

A simple Django-based user authentication system with a custom login and registration interface, styled using TailwindCSS. Includes admin access and flash messaging support.

πŸš€ Features

  • User registration and login
  • Floating labels and password visibility toggle
  • Responsive, modern UI with TailwindCSS
  • Django admin panel for managing users
  • Flash message support for errors and notifications

πŸ“ Project Structure

C:. └───Test_project-main
β”‚ .gitignore
β”‚ manage.py
β”‚
β”œβ”€β”€β”€accounts
β”‚ β”‚ admin.py
β”‚ β”‚ apps.py
β”‚ β”‚ forms.py
β”‚ β”‚ models.py
β”‚ β”‚ urls.py
β”‚ β”‚ views.py
β”‚ β”‚
β”‚ β”œβ”€β”€β”€migrations
β”‚ β”‚ 0001_initial.py
β”‚ β”‚ init.py
β”‚ β”‚
β”‚ └───templates
β”‚ β”œβ”€β”€β”€accounts
β”‚ β”‚ base.html
β”‚ β”‚ login.html
β”‚ β”‚ register.html
β”‚ β”‚ welcome.html
β”‚ β”‚
β”‚ └───registration
β”‚ logged_out.html
β”‚
β”œβ”€β”€β”€auth_project
β”‚ asgi.py
β”‚ settings.py
β”‚ urls.py
β”‚ wsgi.py
β”‚
└───static
β”œβ”€β”€β”€css
β”‚ styles.css
β”‚
└───js
app.js

🧩 Setup Instructions

  1. Clone the repository:

    git clone https://github.com/yourusername/django-auth-system.git  
    cd Test_project-main  
  2. Create and activate a virtual environment:

    python -m venv venv  
    source venv/bin/activate  # On Windows: venv\Scripts\activate  
  3. Install dependencies:

    pip install -r requirements.txt  
  4. Run migrations:

    python manage.py migrate  
  5. Create a superuser:

    python manage.py createsuperuser  
  6. Start the development server:

    python manage.py runserver  
  7. Access the app:

πŸ“œ License

This project is licensed under the MIT License.