practice
A Django-based website featuring authentication (signup, login, logout), protected pages, account management, and a clean UI with reusable templates and static assets.
📂 Project Structure
practice/
│
├── practice/ # Main project folder
│ ├── settings.py
│ ├── urls.py
│ └── wsgi.py
│
├── code1/ # Main application
│ ├── migrations/
│ ├── __init__.py
│ ├── admin.py
│ ├── apps.py
│ ├── models.py
│ ├── tests.py
│ ├── urls.py
│ └── views.py
│
├── templates/ # Global templates
│ ├── base.html
│ ├── home.html
│ ├── about.html
│ ├── service.html
│ ├── contact.html
│ ├── login.html
│ ├── signup.html
│ ├── account.html
│ ├── account_sidebar.html
│ ├── settings.html
│ └── change_password.html
│
├── static/ # Static files
│ └── css/
│ ├── style.css
│ ├── home.css
│ ├── about.css
│ ├── service.css
│ ├── contact.css
│ └── account.css
│
├──.gitignore/
├── manage.py
├── requirements.txt
└── README.md
- User Authentication (Signup, Login, Logout)
- Login-protected pages using
@login_required - Account Dashboard
- Change Password (Django built-in form)
- Global Navbar & Footer
- Separate CSS for each page
- Clean template inheritance using
base.html
- Handles routing for all pages
- Clean URL naming for template linking
- Uses Django authentication system
login_requiredensures page protection- Password change handled securely
- Uses Django messages framework
base.html→ Layout, navbar, auth-based menu- Page-specific templates extend base
- Sidebar included using
{% include %}
- Centralized CSS folder
- Each page loads its own CSS via
{% block extra_css %}
git clone https://github.com/your-username/practice.git
cd practicepython -m venv venv
venv\Scripts\activate # Windows
source venv/bin/activate # Linux/Macpip install djangoCreate requirements.txt
pip freeze > requirements.txtpython manage.py makemigrations
python manage.py migratepython manage.py createsuperuserpython manage.py runserverVisit: http://127.0.0.1:8000/
- Email verification
- Profile image upload
- Contact form backend
- Deployment (Render / Railway)