Useful links
Video steps in a list:
https://gist.github.com/SugarloafAndA...
.gitignore file:
https://github.com/SugarloafAndACupOf...
About this video:
Another twist! What do you say we deploy our project before we move on to DRF? Well I say yes, let's do this!
Video Content:
00:00 Intro
02:02 What is Heroku?
05:34 Django deployment checklist
06:14 pip install gunicorn django-heroku
08:08 pip freeze to requirements.txt
09:10 Procfile
10:11 settings.py - django_heroku
11:15 settings.py - hide SECRET_KEY to env variables
13:18 settings.py - DEBUG to env variables
14:52 optional - staticfiles
15:45 set up git
18:15 install heroku cli
19:28 heroku login
20:20 heroku create
21:31 heroku config:set SECRET
23:05 set secrets via heroku GUI
23:31 git push heroku main
24:37 tada!
26:10 heroku pg
27:57 heroku run bash
28:22 in heroku bash - python manage.py migrate
29:17 in heroku bash - python manage.py createsuperuser
31:05 Run our temp views to pre populate database
31:55 Test deployed site
33:45 heroku releases
33:59 heroku rollback
34:56 Summary
About this tutorial:
The primary goal of this tutorial is to take you through the steps of creating a solid Django portfolio project that will stand out when you talk to your future employer.
Check out tutorial's intro to see if it's something for you:
• 01 - Introduction to the course - Django -...
Tutorial repo:
https://github.com/SugarloafAndACupOf...
Repo branch:
https://github.com/SugarloafAndACupOf...
Please hit SUBSCRIBE if you wanna get the notifications about the new content!
Also, like the hell out of this video if you find it useful/interesting!
Follow us on Facebook: / sugarloaf-and-a-cup-of-joe-101638761829670
and Instagram: / sugarloaf_and_a_cup_of_joe