Skip to content

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

ย 

History

5 Commits

Folders and files

NameName
Last commit message
Last commit date
ย 
ย 
ย 
ย 

Repository files navigation

๐ŸŒ My Django Website

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.


๐Ÿ“œ Table of Contents


๐Ÿ“– About the Project

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.


โœจ Features

โœ… 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


๐Ÿ›  Tech Stack

  • 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)

๐Ÿ“ท Screenshots

๐Ÿ  Home Page

image

๐ŸŽฅ About Page

image

๐Ÿค– Feature Page

image

๐Ÿ“ฉ Contact Page

image

๐Ÿ“ฆ Installation

Prerequisites

  • Python 3.8+ installed on your system
  • Git for version control

Step-by-Step Setup

1๏ธโƒฃ Clone this repository

git clone https://github.com/your-username/your-repo-name.git
cd your-repo-name

2๏ธโƒฃ Create a virtual environment

python -m venv venv

3๏ธโƒฃ Activate the virtual environment

Windows:

venv\Scripts\activate

Mac/Linux:

source venv/bin/activate

4๏ธโƒฃ Install dependencies

pip install django
# Or if you have a requirements.txt file:
# pip install -r requirements.txt

5๏ธโƒฃ Run database migrations

python manage.py migrate

6๏ธโƒฃ Create a superuser (optional)

python manage.py createsuperuser

7๏ธโƒฃ Run the development server

python manage.py runserver

8๏ธโƒฃ Open in browser

http://127.0.0.1:8000/

๐Ÿ“‚ Folder Structure

๐Ÿ“ฆ 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

๐Ÿš€ Usage

Customizing the Website

1. Modify Global Layout

  • Edit templates/base.html for 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.css for 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.js for interactivity
  • Add new JS files as needed

Environment Variables

Create a .env file for sensitive settings:

DEBUG=True
SECRET_KEY=your-secret-key-here
DATABASE_URL=your-database-url

๐Ÿ”ฎ Future Improvements

  • ๐ŸŒ™ 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

๐Ÿค Contributing

Contributions are welcome! Please follow these steps:

  1. Fork the Project
  2. Create your Feature Branch (git checkout -b feature/AmazingFeature)
  3. Commit your Changes (git commit -m 'Add some AmazingFeature')
  4. Push to the Branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

Development Guidelines

  • Follow PEP 8 for Python code
  • Use meaningful commit messages
  • Add comments for complex functionality
  • Test your changes thoroughly

๐Ÿ“ž Contact

Your Name - askotal07@gmail.com

Project Link: https://github.com/anu07718/Django-Website


๐Ÿ™ Acknowledgments


๐Ÿ’ก Pro Tips

  • 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!

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages