68 lines
1.8 KiB
Python
68 lines
1.8 KiB
Python
|
|
"""
|
|
Django settings for sikweb project.
|
|
|
|
Generated by 'django-admin startproject' using Django 1.9.
|
|
|
|
For more information on this file, see
|
|
https://docs.djangoproject.com/en/1.9/topics/settings/
|
|
|
|
For the full list of settings and their values, see
|
|
https://docs.djangoproject.com/en/1.9/ref/settings/
|
|
"""
|
|
|
|
from sikweb.base import *
|
|
|
|
# SECURITY WARNING: don't run with debug turned on in production!
|
|
DEBUG = True
|
|
|
|
# ALLOWED_HOSTS = ["*"]
|
|
|
|
# SECURITY WARNING: keep the secret key used in production secret!
|
|
SECRET_KEY = '7p$85^4ibb^p4-=vs44b7!y0e-zemugze18@a#30&71=a8)dp('
|
|
|
|
# HSL API settings
|
|
HSL_USERHASH = 'YOUR HSL USERHASH HERE'
|
|
HSL_DEPARTURE_THRESHOLD = 8 # minutes
|
|
HSL_HURRY_THRESHOLD = 13 # minutes
|
|
|
|
# MQTT settings
|
|
MQTT_SETTINGS = {
|
|
'HOST': 'mqtt.sik.party',
|
|
'PORT': 1883,
|
|
'TOPICS': {
|
|
'BREW_TIME': 'sik/kiltahuone/kahvivaaka/brewtime',
|
|
'WEIGHT': 'sik/kiltahuone/kahvivaaka/weight',
|
|
'BREWING': 'sik/kiltahuone/kahvivaaka/brewing',
|
|
'CUPS': 'sik/kiltahuone/kahvivaaka/cups',
|
|
}
|
|
}
|
|
|
|
# ReCaptcha
|
|
# http://www.yaconiello.com/blog/integrating-google-recaptcha-to-django/
|
|
GOOGLE_RECAPTCHA_SITE_KEY = "YOUR-PUBLIC-KEY"
|
|
GOOGLE_RECAPTCHA_SECRET_KEY = "YOUR-PRIVATE-KEY"
|
|
|
|
# Email settings (more settings in base.py)
|
|
EMAIL_HOST_USER = '<gmailtunnarisi>@gmail.com'
|
|
EMAIL_HOST_PASSWORD = '<gmail_passu>'
|
|
DEFAULT_EMAIL_FROM = 'SIK Viestintä <sikviestinta@gmail.com>'
|
|
ENABLE_AUTOMATIC_EMAILS = False
|
|
|
|
# Database settings
|
|
# Only uncomment if default settings in base.py are not ok
|
|
|
|
# DATABASES = {
|
|
# 'default': {
|
|
# 'ENGINE': 'django.db.backends.postgresql_psycopg2',
|
|
# 'NAME': 'sik',
|
|
# 'USER': 'sik',
|
|
# 'PASSWORD': 'password123',
|
|
# 'HOST': 'localhost',
|
|
# 'PORT': '5432',
|
|
# 'TEST': {
|
|
# 'NAME': 'sik_test',
|
|
# },
|
|
# },
|
|
# }
|