[PART 1] How to Deploy Django App + PostgreSQL to FLY.io | #python #django #backend
Getting ready Django for deployment to Production part 1. In next video we will deploy it FLY.io Deploying Django Part 1 : https://youtu.be/eZER3cwYELs Deploying Django Part 2 : https://youtu.be/PWKyhmqV2ls Deploy Django PythonAnywhere.com: https://youtu.be/uQt1PP5-hlE Here what we covered in this video 00:00 Intro. 00:29 Clone git repo. 01:17 Install virtual environment. 01:52 Activate virtual environment. 02:03 pip install -r requirements.txt. 02:47 Install psycopg2-binary (postgre adapter). 03:00 Install python-dotenv and setup. 04:17 Create .env file. 05:07 Generate you secret key(secrets, string). 06:35 Setup env variables, os.eniron.get('KEY'). 07:26 Install dj-database-url. 07:45 Update the DATABASES using dj_database_url. 09:39 Install whitnoise and its setup. 10:57 Install gunicorn. 11:22 pip freeze requirements.txt 11:54 Like, Share and Subscribe. Git repo : https://github.com/4yub1k/job-portal-django.git Required: pip install whitenoise pip install psycopg2-binary pip install python-dotenv pip install dj-database-url pip install gunicorn Whitenoise: APPS: "whitenoise.runserver_nostatic", MIDDLEWARE:"whitenoise.middleware.WhiteNoiseMiddleware", STATICFILES_STORAGE = 'whitenoise.storage.CompressedManifestStaticFilesStorage'
Download
0 formatsNo download links available.