Skip to content
Y
yTube.SITE v8.0.4
media / worlds / tools / internet oddities
YouTube / video information

Deploy Django App to Render in 5 Minutes

Video information, playback and saved actions.

Deploy Django App to Render in 5 Minutes

Description: Take your Django app from localhost to a live URL on Render, step by step. We set up static files with WhiteNoise, keep secrets out of the code with environment variables, connect a free PostgreSQL database, and go live with Gunicorn.

⏱ Chapters
0:00 Intro
0:30 Static files with WhiteNoise
0:54 Keep secrets out of the code
1:05 Commit & push to GitHub
1:19 Create the PostgreSQL database
2:21 Create the Web Service
4:15 Environment variables
4:31 Advanced settings
5:06 Deploy & go live
5:41 Recap

🛠 Commands used
Build command:
pip install -r requirements.txt && python manage.py collectstatic --no-input && python manage.py migrate

Start command:
gunicorn your_project_name.wsgi:application

Environment variables:
SECRET_KEY = random string
DATABASE_URL = Render Internal Database URL
DEBUG = False
ALLOWED_HOSTS = your-app.onrender.com ← don't skip this

📦 Packages
gunicorn, whitenoise, dj-database-url, psycopg, python-dotenv

#django #python #render #webdevelopment #deployment Close description
      
Videos related to "Deploy Django App to Render in 5 Minutes"

Related videos are temporarily unavailable.

Try again, or come back later.