Production-ready Django demo project optimized for VPS hosting deployment
Go to file
thecyberlearn c544d15e02 🎯 Remove redundant single project script
- Removed deploy/production-deploy.sh (redundant)
- deploy-project.sh handles both single and multi-project perfectly
- Updated README.md to reflect single deployment method
- Even simpler: ONE deployment script for everything
- Auto-extracts GitHub repo names for clean organization
2025-08-30 09:32:18 +05:30
core Initial commit: Django demo project for VPS deployment 2025-08-29 21:50:08 +05:30
demo_project Initial commit: Django demo project for VPS deployment 2025-08-29 21:50:08 +05:30
deploy 🎯 Remove redundant single project script 2025-08-30 09:32:18 +05:30
.env.example Initial commit: Django demo project for VPS deployment 2025-08-29 21:50:08 +05:30
.gitignore Initial commit: Django demo project for VPS deployment 2025-08-29 21:50:08 +05:30
manage.py Initial commit: Django demo project for VPS deployment 2025-08-29 21:50:08 +05:30
MULTI_PROJECT_SETUP.md Restore multi-project deployment system 2025-08-30 09:24:15 +05:30
README.md 🎯 Remove redundant single project script 2025-08-30 09:32:18 +05:30
requirements.txt Initial commit: Django demo project for VPS deployment 2025-08-29 21:50:08 +05:30
setup-django-user.sh Restore multi-project deployment system 2025-08-30 09:24:15 +05:30

Django VPS Demo Project

Simple Django project optimized for VPS deployment with multi-project support.

Features

  • Minimal Dependencies: Clean, lightweight setup with only essential packages
  • Environment Configuration: Production settings managed via environment variables
  • Database Flexible: Works with SQLite for development and PostgreSQL for production
  • Static Files Handling: Configured with WhiteNoise for efficient static file serving
  • Contact Form: Functional contact form with email validation
  • Simple Blog System: Basic blog functionality with admin interface
  • Bootstrap UI: Responsive design using Bootstrap 5
  • Production Security: Security headers, HTTPS support, and production optimizations
  • VPS Deployment: Complete deployment scripts and configuration files

🛠 Tech Stack

  • Backend: Django 4.2.7
  • Database: SQLite (development) / PostgreSQL (production)
  • Web Server: Gunicorn + Nginx
  • Frontend: Bootstrap 5, Vanilla JavaScript
  • Static Files: WhiteNoise
  • Configuration: python-decouple

🚀 Deploy to VPS

After VPS Reset:

# 1. Fix SSH key
ssh-keygen -f '/home/amit/.ssh/known_hosts' -R '69.62.81.168'

# 2. Setup django user  
scp setup-django-user.sh akvps:/root/
ssh akvps "sudo bash /root/setup-django-user.sh"

# 3. Clone and deploy

Deploy Your Project

ssh akvps "cd /home/django && git clone https://github.com/thecyberlearn/hostinger-django-demo.git"
ssh akvps "cd /home/django/hostinger-django-demo && sudo bash deploy/deploy-project.sh https://github.com/thecyberlearn/hostinger-django-demo.git"

Your site: http://69.62.81.168/

📁 Key Files

Main Deployment Script:

  • deploy/deploy-project.sh - Deploys any Django project with auto repo naming

Documentation:

  • MULTI_PROJECT_SETUP.md - Complete multi-project guide

Setup:

  • setup-django-user.sh - Create django user on fresh VPS
  • requirements.txt - Python dependencies

🎯 That's It!

For detailed multi-project setup, see MULTI_PROJECT_SETUP.md

Simple, clean, and no confusion! 🚀