A simple Django-based user authentication system with a custom login and registration interface, styled using TailwindCSS. Includes admin access and flash messaging support.
- 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
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
-
Clone the repository:
git clone https://github.com/yourusername/django-auth-system.git cd Test_project-main -
Create and activate a virtual environment:
python -m venv venv source venv/bin/activate # On Windows: venv\Scripts\activate
-
Install dependencies:
pip install -r requirements.txt
-
Run migrations:
python manage.py migrate
-
Create a superuser:
python manage.py createsuperuser
-
Start the development server:
python manage.py runserver
-
Access the app:
- Login/Register: http://127.0.0.1:8000/login/
- Admin Panel: http://127.0.0.1:8000/admin/
This project is licensed under the MIT License.