Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

A data management environment for havelovewilltravel.be

License

NotificationsYou must be signed in to change notification settings

Kunstenpunt/havelovewilltravel

Repository files navigation

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

[8]ページ先頭

©2009-2025 Movatter.jp