Skip to content

Kunstenpunt/havelovewilltravel

Folders and files

NameName
Last commit message
Last commit date

Latest commit

f7ab8b6 · May 17, 2022
Jun 21, 2020
Jan 28, 2021
May 17, 2022
Mar 4, 2021
May 7, 2020
Feb 27, 2020
Feb 27, 2020
Dec 5, 2019
Feb 4, 2020
Apr 28, 2020
Feb 3, 2020
May 11, 2020
Dec 5, 2019
Feb 18, 2022
Jan 16, 2021
Apr 16, 2021

Repository files navigation

havelovewilltravel

A data management environment for havelovewilltravel.be

Data structure

A more complete description of the data structure is provided in the Wiki [https://github.com/Kunstenpunt/havelovewilltravel/wiki].

Deploy on heroku

  • pip freeze > requirements.txt

  • 'add "psycopg2-binary==2.7.7" to requirements.txt'

  • heroku addons:create heroku-postgresql:hobby-basic -a hlwtadmin

  • push to github

  • heroku run python manage.py migrate -a hlwtadmin

  • heroku run python manage.py createsuperuser -a hlwtadmin

Settings

  • 'provide api keys and base_urls in /admin for gigfinders'
  • set GOOGLE_PLACES_API_KEY in environment variable
  • SET MR_HENRY_API_KEY in environment variable

Schedule background tasks via Heroku Scheduler

  • $ if [ "$(date +%u)" = 4 ]; then python manage.py synchronize_with_musicbrainz; fi # synchronize musicbrainz on thursday evening
  • $ if [ "$(date +%u)" -gt 4 ]; then python manage.py synchronize_concerts; fi # synchronize concerts in the weekend, on friday, saturday and sunday evening
  • $ python manage.py clean_duplicated_relations