This is a complete Django-based authentication system built by Muthoni Gathiithi. It includes user registration, login, logout, and error handling features. The system is ideal for learning and implementing real-world Django authentication workflows with best practices.
- User registration with form validation
- Login and logout functionality
- Secure password handling
- Custom error handling for better user experience
- Modular structure with templates, views, and models
- Django form handling and redirections
- Python
- Django (latest stable version)
- SQLite (default development database)
- HTML (with Django templates)
django_Full_Authentication_System/ β βββ Authentication/ # Main Django project folder β βββ settings.py # Project settings β βββ urls.py # Root URL configuration β βββ wsgi.py, asgi.py # Server interfaces β βββ accounts/ # Core app for authentication β βββ templates/accounts/ # HTML templates β βββ views.py # View logic (login, register, logout) β βββ models.py # Custom user model (if any) β βββ forms.py # User input forms β βββ urls.py # App-specific URLs β βββ admin.py, apps.py # Admin and config β βββ migrations/ # Database migration files β βββ db.sqlite3 # Default database βββ manage.py # Django management script
bash Copy Edit
- Clone the repository:
git clone https://github.com/MuthoniGathiithi/django_Full_Authentication_System.git cd django_Full_Authentication_System
Create a virtual environment:
python -m venv venv
source venv/bin/activate # On Windows use venv\Scripts\activate
2.Install dependencies:
pip install -r requirements.txt
3.Run migrations:
python manage.py migrate
4.Start the development server:
python manage.py runserver Visit http://127.0.0.1:8000/accounts/register/ to register a new user.