51 lines
1.5 KiB
Python
51 lines
1.5 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 = False
|
|
|
|
ALLOWED_HOSTS = ["sika.sik.party"]
|
|
|
|
# SECURITY WARNING: keep the secret key used in production secret!
|
|
SECRET_KEY = os.getenv('SECRET_KEY', '<your secret key>')
|
|
|
|
# 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 = 'sikviestinta@gmail.com'
|
|
EMAIL_HOST_PASSWORD = os.getenv('EMAIL_PASSWD', '<gmail_passu>')
|
|
DEFAULT_EMAIL_FROM = 'SIK Viestintä <sikviestinta@gmail.com>'
|
|
ENABLE_AUTOMATIC_EMAILS = True
|
|
|
|
# Token for Telegram bot
|
|
TELEGRAM_BOT_TOKEN = os.getenv('TG_BOT_TOKEN')
|
|
|
|
# Database settings
|
|
# Only uncomment if default settings in base.py are not ok
|
|
|
|
DATABASES = {
|
|
'default': {
|
|
'ENGINE': 'django.db.backends.postgresql_psycopg2',
|
|
'NAME': os.getenv('DB_USER', '<none>'),
|
|
'USER': os.getenv('DB_USER', '<none>'),
|
|
'PASSWORD': os.getenv('DB_PASSWD', '<none>'),
|
|
'HOST': os.getenv('DB_HOST', '127.0.0.1'),
|
|
'PORT': os.getenv('DB_PORT', 5432),
|
|
}
|
|
}
|