In this Video I'm going to show you, How to deploy Django app on Heroku platform with PostgreSQL database.
First I will show you How to Deploy Django Project in GitHub then I will Deploy Heroku server from GitHub repository.
Full Video I will explain with Bangla and I also show step by step. I hope after watch this video Django Project Deploying
will be very easy.
Step 0
Download and install Git, Heroku cli And Create Heroku Account
Step 1
pip install gunicorn
pip install whitenoise
pip install django-heroku // import django_heroku
pip install dj_database_url // import dj_database_url
Step 2
STATIC_ROOT = os.path.join(BASE_DIR,'static')
STATICFILES_DIRS = [os.path.join(BASE_DIR,'project_name/static')
]
MEDIA_ROOT = os.path.join(BASE_DIR,'media')
MEDIA_URL = '/media/'
STATICFILES_STORAGE = 'whitenoise.storage.CompressedManifestStaticFilesStorage'
Step 3
'whitenoise.middleware.WhiteNoiseMiddleware',
Step 4
Creating Procfile
web: gunicorn demo.wsgi --log-file -
Step 5
django_heroku.settings(locals())
Step 6
ALLOWED_HOSTS = ['nongarehub.herokuapp.com', '127.0.0.1']
Step 7
Set Up Postgres Database
Step 8
pip freeze requirements.txt { ডেসক্রিপশন এ গ্রেটার-দেন দেওয়া যাই না, সো ফ্রিজ এর পর অবশ্যই গ্রেটার-দেন দিয়ে নিবেন }
Step 9
git config --global user.name
git config --global user.email
git init
git add .
git commit -m 'command something'
git push -u origin
Step 10
heroku create [app name]
heroku login
heroku settings
*****Chapters*****
0:00:00 Introductions
0:01:58 How to Download and Install Git Bangla
0:02:22 How to Download and Install Heroku CLI bangla
0:03:33 How to create account in Heroku Bangla
0:04:56 How create app in heroku Bangla
0:06:45 Setup heroku for Deploying Django project
0:16:40 How to push Django project in GitHub Bangla
0:21:58 Show our Project in live server
0:22:17 Special speak for our course and The End
#Free_Domain_Hosting_Bangla
#How_To_Deploy_a_Django_App_on-Heroku_Bangla
#How_to_Deploy_Django_App_on_Heroku_with_PostgreSQL_Database_Bangla