Calorietracker

Enviroment

Pipenv by default loads in a .env file automatically see .env.example for examples This needs to be mirrord on deployment on Dokku

Stripe

locale webhook for testing assuming localhost 8000
stripe listen --forward-to http://127.0.0.1:8000/stripe/webhook/

Dokku

Postgres

dokku postgres:unlink djangodb calorietracker
dokku postgres:destroy djangodb
dokku postgres:create djangodb
dokku postgres:link djangodb calorietracker

To create superuser:

dokku run calorietracker python mysite/manage.py createsuperuser

To initialize test3 sampledata:

dokku enter calorietracker
cd mysite/
python initializedata.py

You will have to set test3 password via admin panel to login as test3.

Backup

Cronjobs

Hourly DB backups

* 1 * * * dokku postgres:export djangodb > djangodb.db

Package Documentation


DateTimePicker


django-activity-stream


Django encrypted model fields


Pinax-referrals

There is some funny business going on with the 004 Migration file