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.