This is a Django-based User Registration and Authentication System that allows users to sign up, log in, log out, and access protected pages. The project uses Django's built-in authentication system and messages framework for user feedback.
- User Signup with username, email, and password validation.
- Login and Logout functionality.
- Error Handling for invalid credentials, duplicate usernames/emails, and password mismatches.
- Authenticated Routes: Certain pages are only accessible after login.
- Bootstrap Integration for better UI/UX.
- Django (Python Web Framework)
- SQLite (Default Django database for development)
- Bootstrap (For frontend styling)
- HTML, CSS, JavaScript
project_root/
│── app_name/
│ ├── migrations/
│ ├── templates/
│ │ ├── base.html
│ │ ├── home.html
│ │ ├── login.html
│ │ ├── signup.html
│ │ ├── about.html
│ │ ├── services.html
│ ├── views.py
│ ├── urls.py
│ ├── models.py
│ ├── forms.py
│── project_name/
│ ├── settings.py
│ ├── urls.py
│── manage.py
│── db.sqlite3
│── README.md
git clone https://github.com/AbdullahRFA/User_registration_system_with_django.git
cd Registration_Systempython -m venv venv
source venv/bin/activate # On Mac/Linux
venv\Scripts\activate # On Windowspip install -r requirements.txtpython manage.py migratepython manage.py createsuperuserpython manage.py runserverOpen http://127.0.0.1:8000/ in your browser.
- Signup at
/signup→ Creates a new user. - Login at
/login→ Authenticates user and redirects to home. - Logout → Logs out and redirects to login page.
- Authenticated Pages:
@login_requireddecorator ensures some pages are accessible only after login.
| Endpoint | Method | Description |
|---|---|---|
/signup |
POST | Register a new user |
/login |
POST | Log in an existing user |
/logout |
GET | Logout the current user |
/ |
GET | Home page (requires login) |
/about |
GET | About page |
/services |
GET | Services page |
- Add password reset functionality.
- Implement social authentication (Google, Facebook login).
- Improve UI design with more styling.
Contributions are welcome! Feel free to fork this repository and submit a pull request.
This project is licensed under the MIT License.
- Developer: Abdullah Nazmus-Sakib
- GitHub: AbdullahRFA
- Portfolio: abdullah-nazmus-sakib-rfa.netlify.app
- Email: shakibrybmn@gmail.com)