An elegant, responsive Django-powered website with smooth navigation, interactive pages, background videos, and a clean UI design.
The project includes Home, Features, Contact, and other customizable pages with modern styling.
- About the Project
- Features
- Tech Stack
- Screenshots
- Installation
- Folder Structure
- Usage
- Future Improvements
- Contributing
- License
This project is a simple yet modern Django website that demonstrates:
- Django templates & static files management
- Responsive HTML/CSS layout with mobile-first design
- JavaScript interactivity and animations
- Background video integration for immersive experience
- Consistent navigation with "Back to Home" functionality
- Clean, maintainable code structure
It's designed as a starting point for anyone wanting to quickly build and customize a Django web application with modern web standards.
โ
Modern UI Design โ Clean, responsive layout with smooth animations
โ
Background Video โ Features page with looping MP4 background
โ
Reusable Templates โ base.html for consistent header/footer across pages
โ
Contact Form โ User-friendly contact page with form validation
โ
Navigation System โ Intuitive menu with "Back to Home" buttons
โ
Mobile Responsive โ Optimized for all device sizes
โ
Static Files Management โ Organized CSS, JS, images, and videos
โ
SEO Friendly โ Proper meta tags and semantic HTML structure
โ
Fast Loading โ Optimized media files and efficient Django setup
โ
Fully Customizable โ Easy to edit, extend, and brand
- Backend: Django 4.x (Python)
- Frontend: HTML5, CSS3, JavaScript (ES6+)
- Styling: Custom CSS with Flexbox/Grid layouts
- Media: MP4 video backgrounds, optimized images (PNG/JPG)
- Tools: VS Code / PyCharm, Git, GitHub
- Database: SQLite (default, easily switchable)
- Python 3.8+ installed on your system
- Git for version control
1๏ธโฃ Clone this repository
git clone https://github.com/your-username/your-repo-name.git
cd your-repo-name2๏ธโฃ Create a virtual environment
python -m venv venv3๏ธโฃ Activate the virtual environment
Windows:
venv\Scripts\activateMac/Linux:
source venv/bin/activate4๏ธโฃ Install dependencies
pip install django
# Or if you have a requirements.txt file:
# pip install -r requirements.txt5๏ธโฃ Run database migrations
python manage.py migrate6๏ธโฃ Create a superuser (optional)
python manage.py createsuperuser7๏ธโฃ Run the development server
python manage.py runserver8๏ธโฃ Open in browser
http://127.0.0.1:8000/
๐ฆ my-django-website
โฃ ๐ mysite/ # Main Django project directory
โ โฃ ๐ mysite/ # Project settings
โ โ โฃ ๐ __init__.py
โ โ โฃ ๐ settings.py # Django configuration
โ โ โฃ ๐ urls.py # URL routing
โ โ โฃ ๐ wsgi.py
โ โ โ ๐ asgi.py
โ โ ๐ main/ # Main app directory
โ โฃ ๐ __init__.py
โ โฃ ๐ views.py # View functions
โ โฃ ๐ urls.py # App URL patterns
โ โฃ ๐ models.py # Database models
โ โ ๐ apps.py
โฃ ๐ templates/ # HTML templates
โ โฃ ๐ base.html # Base template
โ โฃ ๐ home.html # Home page
โ โฃ ๐ features.html # Features page
โ โ ๐ contact.html # Contact page
โฃ ๐ static/ # Static files
โ โฃ ๐ css/ # Stylesheets
โ โ โ ๐ styles.css # Main CSS file
โ โฃ ๐ js/ # JavaScript files
โ โ โ ๐ main.js # Main JS file
โ โฃ ๐ images/ # Image assets
โ โ โฃ ๐ logo.png
โ โ โ ๐ hero-bg.jpg
โ โ ๐ videos/ # Video assets
โ โ ๐ feature.mp4 # Background video
โฃ ๐ assets/ # README assets
โ โฃ ๐ banner.png
โ โฃ ๐ home.png
โ โฃ ๐ features.png
โ โ ๐ contact.png
โฃ ๐ manage.py # Django management script
โฃ ๐ requirements.txt # Python dependencies
โ ๐ README.md # This file
1. Modify Global Layout
- Edit
templates/base.htmlfor site-wide changes - Update header, footer, navigation, and meta tags
2. Add New Pages
- Create new HTML templates in
templates/ - Add corresponding views in
views.py - Update URL patterns in
urls.py
3. Styling Changes
- Modify
static/css/styles.cssfor visual updates - Add new CSS files and link them in templates
4. Add Media Content
- Place videos in
static/videos/ - Add images to
static/images/ - Update file references in templates
5. JavaScript Functionality
- Enhance
static/js/main.jsfor interactivity - Add new JS files as needed
Create a .env file for sensitive settings:
DEBUG=True
SECRET_KEY=your-secret-key-here
DATABASE_URL=your-database-url- ๐ Dark Mode Toggle - Theme switcher with localStorage
- ๐ฑ Better Mobile Optimization - Enhanced responsive design
- ๐ Dynamic Contact Form - Backend form processing with email
- ๐จ Theme Customizer - Multiple color schemes
- ๐ User Authentication - Login/register functionality
- ๐ Analytics Integration - Google Analytics setup
- โก Performance Optimization - Image lazy loading, caching
- ๐ Multi-language Support - Internationalization (i18n)
- ๐ฑ PWA Features - Service workers, offline support
- ๐ฏ SEO Enhancements - Schema markup, sitemap generation
Contributions are welcome! Please follow these steps:
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature) - Commit your Changes (
git commit -m 'Add some AmazingFeature') - Push to the Branch (
git push origin feature/AmazingFeature) - Open a Pull Request
- Follow PEP 8 for Python code
- Use meaningful commit messages
- Add comments for complex functionality
- Test your changes thoroughly
Your Name - askotal07@gmail.com
Project Link: https://github.com/anu07718/Django-Website
- Django Documentation for excellent guides
- Bootstrap for responsive design inspiration
- Unsplash for placeholder images
- Community contributors and testers
- Screenshots: Add your actual screenshots to
assets/folder and update the image paths - Video Optimization: Compress your background videos for faster loading
- SEO: Update meta descriptions and titles in your templates
- Security: Never commit sensitive information like secret keys
- Performance: Use Django's collectstatic command for production deployment
โญ If you found this project helpful, please give it a star on GitHub!