[{"data":1,"prerenderedAt":102},["ShallowReactive",2],{"seo-verification":3,"marketplace-app-en-django":6},{"google":4,"bing":5},"EycwPY2XMyTkVzas3n1ygeNJFGAH513qrMjfDljzsMQ","",{"slug":7,"slugs":8,"categorySlugs":9,"name":13,"description":14,"phase":15,"unavailableReason":16,"docsUrl":17,"logo":18,"github":18,"tagline":19,"longDescription":20,"features":21,"useCases":29,"steps":39,"faq":55,"specs":71,"compatibleOs":81,"relatedApps":82,"relatedPosts":97,"category":99},"django",{"fr":7,"en":7,"ar":7},{"fr":10,"en":11,"ar":12},"developpement","development","التطوير","Django Stack","Python 3.12, Gunicorn, Nginx and PostgreSQL 16 preconfigured. Deploy your Django application to production in minutes, no manual server setup.",2,"awaiting_qa","https:\u002F\u002Fservorbit.com\u002Fblog\u002Fdeploy-a-django-application-on-a-vps",null,"Production-ready Python environment — Django, Gunicorn, Nginx, PostgreSQL 16.","Django Stack provisions your VPS with everything a Django application needs in production: Python 3.12 (deadsnakes PPA), Gunicorn as the WSGI server, Nginx as the reverse proxy, and PostgreSQL 16 as the database. No manual package configuration, no buildpack constraints — clone your repository, run your migrations, and your application is live.\n\nPython 3.12 delivers 30–60 % faster request cycles than 3.10 on typical Django workloads. Gunicorn's pre-fork worker model handles concurrent requests with a predictable memory footprint — start with 3 workers, scale up as traffic grows. Nginx manages static-file serving, gzip compression and HTTPS termination without container overhead. PostgreSQL 16 gives you JSONB columns, full-text search, and the query planner improvements that make Django ORM queries fast at scale.\n\nThe stack is designed for real projects: Celery workers and Redis can be added to the same VPS, Supervisor keeps them alive after reboot, and virtualenv isolates your project's dependencies from the system Python. Deploy the same setup across every environment and never hit a \"works on my machine\" moment.",[22,23,24,25,26,27,28],"Python 3.12 from the deadsnakes PPA — latest stable release, 30–60 % faster than 3.10 on typical Django workloads.","Gunicorn WSGI server with pre-fork workers — production-grade, configurable worker count, predictable memory usage.","Nginx reverse proxy — static file serving, gzip compression, HTTPS termination, security headers out of the box.","PostgreSQL 16 — JSONB, full-text search, advanced query planner; the first-class Django database.","pip and virtualenv — dependency isolation and reproducible installs per project.","Supervisor-ready — add a Supervisor config to keep Gunicorn and Celery workers alive after reboots.","Redis-ready — install Redis in one command to unlock Celery task queues and Django cache backend.",[30,33,36],{"title":31,"body":32},"Django web application","Deploy an existing Django project: clone your repository into \u002Fvar\u002Fwww\u002Fyour-app, create a virtualenv, run pip install, collectstatic, and migrate. Gunicorn starts with your wsgi.py and Nginx proxies ports 80\u002F443 to it — SSL via Let's Encrypt is a single certbot command.",{"title":34,"body":35},"REST API with Django REST Framework","Host a DRF API backend for a mobile app or SPA frontend. Nginx handles CORS headers and rate limiting. Add Redis and Celery on the same VPS for async tasks without changing the deployment model.",{"title":37,"body":38},"SaaS prototype to production","Start your SaaS project locally, deploy to this stack in minutes. Add Celery for background jobs, Redis for caching, and PostgreSQL LISTEN\u002FNOTIFY for real-time features — all on a single 2 GB VPS until traffic justifies splitting services.",[40,43,46,49,52],{"title":41,"body":42},"Order a ServOrbit VPS","A 2 GB RAM VPS on Ubuntu 24.04 is the minimum for Django with PostgreSQL. Choose 4 GB if you plan to run Celery workers or a loaded Redis cache. The Django Stack template is available in the marketplace order form.",{"title":44,"body":45},"Deploy from the marketplace","Go to Marketplace → Development → Django Stack and click Deploy. The provisioning script installs Python 3.12, Gunicorn, Nginx, and PostgreSQL 16 — no manual SSH session required for the base setup.",{"title":47,"body":48},"Clone your project and configure","SSH into the VPS, clone your repository into \u002Fvar\u002Fwww\u002Fyour-project, create a virtualenv (`python3.12 -m venv venv`), install dependencies (`pip install -r requirements.txt`), and create a .env file with SECRET_KEY, DATABASE_URL, ALLOWED_HOSTS, and DEBUG=False.",{"title":50,"body":51},"Run migrations and collect static files","Activate the virtualenv and run `python manage.py migrate` then `python manage.py collectstatic --noinput`. The Nginx configuration already maps \u002Fstatic\u002F and \u002Fmedia\u002F to the correct directories.",{"title":53,"body":54},"Start Gunicorn and enable HTTPS","Start Gunicorn with `gunicorn your_project.wsgi:application --bind 127.0.0.1:8000 --workers 3` (or use the provided Supervisor config to keep it alive after reboots). Run `certbot --nginx -d your-domain.com` to get a free Let's Encrypt certificate.",[56,59,62,65,68],{"q":57,"a":58},"Which Python version is installed?","Python 3.12 from the deadsnakes PPA. You can install other versions alongside it with `sudo add-apt-repository ppa:deadsnakes\u002Fppa && apt install python3.X`. virtualenv lets you use any installed version for your project independently.",{"q":60,"a":61},"Can I use MySQL instead of PostgreSQL?","The stack installs PostgreSQL 16 by default, the recommended Django production database. You can add MariaDB or MySQL alongside it, but PostgreSQL is the better choice for Django: JSONB fields, full-text search, and the ORM are all first-class on PostgreSQL.",{"q":63,"a":64},"How do I add Celery and Redis?","Install Redis with `apt install redis-server`, add `celery` to your requirements.txt, and create a Supervisor config for your Celery worker under \u002Fetc\u002Fsupervisor\u002Fconf.d\u002F. Django Stack is designed to host both Gunicorn and Celery workers on the same VPS.",{"q":66,"a":67},"Can I deploy multiple Django projects on the same VPS?","Yes. Create one virtualenv per project in \u002Fvar\u002Fwww\u002F, one Nginx server block per domain, and one Gunicorn process per project on a distinct port. Supervisor manages each Gunicorn process independently — they do not interfere with each other.",{"q":69,"a":70},"What is the minimum recommended RAM?","2 GB for a single Django application with PostgreSQL. Add 1–2 GB if you run Celery workers. Gunicorn workers use approximately 100–200 MB each; start with 3 workers and adjust based on observed memory usage.",{"ram":72,"cpu":73,"stack":74},"2 GB","1 vCPU",[75,76,77,78,79,80],"Python 3.12","Gunicorn","Nginx","PostgreSQL 16","pip","virtualenv",[],[83,91],{"name":84,"slug":85,"categorySlug":11,"categoryName":86,"categoryColor":87,"logo":88,"tagline":89,"description":90},"Laravel Stack","laravel-stack","Development","text-warning bg-warning\u002F10","https:\u002F\u002Fcdn.simpleicons.org\u002Flaravel","PHP-FPM, Nginx, PostgreSQL, Redis and Supervisor — a production-ready Laravel stack from the moment you order.","PHP-FPM, Nginx, PostgreSQL, Redis and Supervisor preconfigured. Deploy Laravel to production with no initial configuration.",{"name":92,"slug":93,"categorySlug":11,"categoryName":86,"categoryColor":87,"logo":94,"tagline":95,"description":96},"Node.js Stack","nodejs-stack","https:\u002F\u002Fcdn.simpleicons.org\u002Fnodedotjs","Node.js, PM2, Nginx and a database — a production environment for your JavaScript APIs and apps.","Node.js with PM2, an Nginx reverse proxy and a database. Your JavaScript APIs and applications ready to take traffic.",[98],"deployer-django-vps",{"key":10,"slug":11,"name":86,"objective":100,"icon":101,"color":87},"Kick off a software project quickly.","dev",1787581038978]