Steps to deploying a Django app to Heroku
pipenv install gunicorn
or
pip install gunicorn
Magic words:
psql -U postgres
Some interesting flags (to see all, use -h
or --help
depending on your psql version):
-E
: will describe the underlaying queries of the \
commands (cool for learning!)-l
: psql will list all databases and then exit (useful if the user you connect with doesn't has a default database, like at AWS RDS)In this guide I will go through all the steps to create a VPS, secure it and deploy a Django application. This is a summarized document from this digital ocean doc
Any commands with "$" at the beginning run on your local machine and any "#" run when logged into the server
Use this link and get $10 free. Just select the $5 plan unless this a production app.
{ | |
'AB':"Abia", | |
'AD':"Adamawa", | |
'AI':"Akwa Ibom", | |
'AR':"Anambra", | |
'BH':"Bauchi", | |
'BL':"Bayelsa", | |
'BE':"Benue", | |
'BN':"Borno", | |
'CR':"Cross River", |
>>> import pytz | |
>>> | |
>>> for tz in pytz.all_timezones: | |
... print tz | |
... | |
... | |
Africa/Abidjan | |
Africa/Accra | |
Africa/Addis_Ababa | |
Africa/Algiers |