78 lines
1.8 KiB
Python
78 lines
1.8 KiB
Python
"""
|
|
Django settings for rowsandall_app project.
|
|
|
|
Generated by 'django-admin startproject' using Django 1.9.5.
|
|
|
|
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 settings import *
|
|
|
|
DATABASES = {
|
|
'default': {
|
|
'ENGINE': 'django.db.backends.sqlite3',
|
|
'NAME': os.path.join(BASE_DIR, 'db.sqlite3'),
|
|
'HOST': 'localhost'
|
|
},
|
|
# 'TEST': {
|
|
# 'CHARSET': 'utf8',
|
|
# 'COLLATION': 'utf8_general_ci',
|
|
# },
|
|
|
|
# 'slave': {
|
|
# 'ENGINE': 'django.db.backends.mysql',
|
|
# 'NAME': 'rowsanda_107501',
|
|
# 'USER': 'rowsanda_107501',
|
|
# 'PASSWORD': 'roeidata',
|
|
# 'HOST': 'store3.rosti.cz',
|
|
# 'PORT': '3306',
|
|
# }
|
|
}
|
|
|
|
BROKER_URL = 'redis://localhost:6379/0'
|
|
CELERY_RESULT_BACKEND = 'redis://localhost:6379/0'
|
|
CELERY_IGNORE_RESULT = False
|
|
|
|
CELERY_ACCEPT_CONTENT = ['json']
|
|
CELERY_TASK_SERIALIZER = 'json'
|
|
CELERY_RESULT_SERIALIZER = 'json'
|
|
CELERY_TRACK_STARTED = True
|
|
CELERY_SEND_TASK_SENT_EVENT = True
|
|
|
|
|
|
# SECURITY WARNING: don't run with debug turned on in production!
|
|
DEBUG = False
|
|
TEMPLATE_DEBUG = DEBUG
|
|
|
|
ALLOWED_HOSTS = ['localhost']
|
|
|
|
|
|
# Application definition
|
|
|
|
|
|
STATIC_URL = '/static/'
|
|
STATIC_ROOT = 'C:/python/rowsandallapp'
|
|
|
|
INTERNAL_IPS = ['127.0.0.1']
|
|
|
|
MEDIA_URL = '/media/'
|
|
MEDIA_ROOT = os.path.join(BASE_DIR, 'media')
|
|
|
|
LOGIN_REDIRECT_URL = '/rowers/list-workouts/'
|
|
|
|
SESSION_ENGINE = "django.contrib.sessions.backends.signed_cookies"
|
|
|
|
#EMAIL_BACKEND = 'django.core.mail.backends.console.EmailBackend'
|
|
|
|
#EMAIL_BACKEND = 'django.core.mail.backends.dummy.EmailBackend'
|
|
#EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend'
|
|
|
|
#EMAIL_HOST = 'localhost'
|
|
#EMAIL_PORT = '1025'
|
|
#EMAIL_HOST_USER = ''
|
|
#EMAIL_HOST_PASSWORD = ''
|
|
#EMAIL_USE_TLS = True
|