cd psq_api
virtualenv -p python3 .env
source .env/bin/activate
pip install -r requirements.txt
pip freeze > requirements.txt
pip install gunicorn psycopg2-binary
python manage.py makemigrations
python manage.py migrate
python manage.py migrate django_cron
https://docs.djangoproject.com/en/2.0/topics/migrations/
python manage.py createsuperuser
http://django-cron.readthedocs.io/en/latest/installation.html
python manage.py runcrons --force
python manage.py collectstatic
django-admin makemessages -l es django-admin compilemessages
sudo lsof -t -i tcp:8000 | xargs kill -9
sudo -u postgres psql
\l -- list databases. \du -- list users
CREATE DATABASE psq;
GRANT ALL PRIVILEGES ON DATABASE psq TO psq_user;
brew services restart postgres