Added tasks app
This commit is contained in:
parent
184436dbe4
commit
3d7f4d29e0
|
@ -1,6 +1,8 @@
|
||||||
"""
|
"""
|
||||||
Django settings for {{ project_name }} project.
|
Django settings for {{ project_name }} project.
|
||||||
|
|
||||||
|
Generated by 'django-admin startproject' using Django {{ django_version }}.
|
||||||
|
|
||||||
For more information on this file, see
|
For more information on this file, see
|
||||||
https://docs.djangoproject.com/en/{{ docs_version }}/topics/settings/
|
https://docs.djangoproject.com/en/{{ docs_version }}/topics/settings/
|
||||||
|
|
||||||
|
@ -13,19 +15,112 @@ from orchestra.conf.production_settings import *
|
||||||
# Development settings
|
# Development settings
|
||||||
# from orchestra.conf.devel_settings import *
|
# from orchestra.conf.devel_settings import *
|
||||||
|
|
||||||
|
import os
|
||||||
|
|
||||||
# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
|
# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
|
||||||
import os
|
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
|
||||||
BASE_DIR = os.path.dirname(os.path.dirname(__file__))
|
|
||||||
|
|
||||||
|
|
||||||
|
# Quick-start development settings - unsuitable for production
|
||||||
|
# See https://docs.djangoproject.com/en/{{ docs_version }}/howto/deployment/checklist/
|
||||||
|
|
||||||
# SECURITY WARNING: keep the secret key used in production secret!
|
# SECURITY WARNING: keep the secret key used in production secret!
|
||||||
# Hardcoded values can leak through source control. Consider loading
|
|
||||||
# the secret key from an environment variable or a file instead.
|
|
||||||
SECRET_KEY = '{{ secret_key }}'
|
SECRET_KEY = '{{ secret_key }}'
|
||||||
|
|
||||||
|
# SECURITY WARNING: don't run with debug turned on in production!
|
||||||
|
DEBUG = True
|
||||||
|
|
||||||
|
ALLOWED_HOSTS = []
|
||||||
|
|
||||||
|
|
||||||
|
# Application definition
|
||||||
|
|
||||||
|
INSTALLED_APPS = [
|
||||||
|
# django-orchestra apps
|
||||||
|
'orchestra',
|
||||||
|
'orchestra.contrib.accounts',
|
||||||
|
'orchestra.contrib.contacts',
|
||||||
|
'orchestra.contrib.orchestration',
|
||||||
|
'orchestra.contrib.domains',
|
||||||
|
'orchestra.contrib.systemusers',
|
||||||
|
'orchestra.contrib.mailboxes',
|
||||||
|
'orchestra.contrib.lists',
|
||||||
|
'orchestra.contrib.webapps',
|
||||||
|
'orchestra.contrib.websites',
|
||||||
|
'orchestra.contrib.databases',
|
||||||
|
'orchestra.contrib.vps',
|
||||||
|
'orchestra.contrib.saas',
|
||||||
|
'orchestra.contrib.issues',
|
||||||
|
'orchestra.contrib.services',
|
||||||
|
'orchestra.contrib.plans',
|
||||||
|
'orchestra.contrib.orders',
|
||||||
|
'orchestra.contrib.miscellaneous',
|
||||||
|
'orchestra.contrib.bills',
|
||||||
|
'orchestra.contrib.payments',
|
||||||
|
'orchestra.contrib.tasks',
|
||||||
|
|
||||||
|
# Third-party apps
|
||||||
|
'django_extensions',
|
||||||
|
'djcelery',
|
||||||
|
'djcelery_email',
|
||||||
|
'fluent_dashboard',
|
||||||
|
'admin_tools',
|
||||||
|
'admin_tools.theming',
|
||||||
|
'admin_tools.menu',
|
||||||
|
'admin_tools.dashboard',
|
||||||
|
'rest_framework',
|
||||||
|
'rest_framework.authtoken',
|
||||||
|
'passlib.ext.django',
|
||||||
|
'django_countries',
|
||||||
|
# 'django_mailer',
|
||||||
|
|
||||||
|
# Django.contrib
|
||||||
|
'django.contrib.auth',
|
||||||
|
'django.contrib.contenttypes',
|
||||||
|
'django.contrib.sessions',
|
||||||
|
'django.contrib.messages',
|
||||||
|
'django.contrib.staticfiles',
|
||||||
|
'django.contrib.admin.apps.SimpleAdminConfig',
|
||||||
|
|
||||||
|
# Last to load
|
||||||
|
'orchestra.contrib.resources',
|
||||||
|
'orchestra.contrib.settings',
|
||||||
|
]
|
||||||
|
|
||||||
|
|
||||||
|
MIDDLEWARE_CLASSES = [
|
||||||
|
'django.contrib.sessions.middleware.SessionMiddleware',
|
||||||
|
'django.middleware.common.CommonMiddleware',
|
||||||
|
'django.middleware.csrf.CsrfViewMiddleware',
|
||||||
|
'django.contrib.auth.middleware.AuthenticationMiddleware',
|
||||||
|
'django.contrib.auth.middleware.SessionAuthenticationMiddleware',
|
||||||
|
'django.contrib.messages.middleware.MessageMiddleware',
|
||||||
|
'django.middleware.clickjacking.XFrameOptionsMiddleware',
|
||||||
|
'django.middleware.security.SecurityMiddleware',
|
||||||
|
'orchestra.core.caches.RequestCacheMiddleware',
|
||||||
|
# also handles transations, ATOMIC_REQUESTS does not wrap middlewares
|
||||||
|
'orchestra.contrib.orchestration.middlewares.OperationsMiddleware',
|
||||||
|
]
|
||||||
|
|
||||||
|
|
||||||
ROOT_URLCONF = '{{ project_name }}.urls'
|
ROOT_URLCONF = '{{ project_name }}.urls'
|
||||||
|
|
||||||
|
TEMPLATES = [
|
||||||
|
{
|
||||||
|
'BACKEND': 'django.template.backends.django.DjangoTemplates',
|
||||||
|
'DIRS': [],
|
||||||
|
'APP_DIRS': True,
|
||||||
|
'OPTIONS': {
|
||||||
|
'context_processors': [
|
||||||
|
'django.template.context_processors.debug',
|
||||||
|
'django.template.context_processors.request',
|
||||||
|
'django.contrib.auth.context_processors.auth',
|
||||||
|
'django.contrib.messages.context_processors.messages',
|
||||||
|
],
|
||||||
|
},
|
||||||
|
},
|
||||||
|
]
|
||||||
|
|
||||||
WSGI_APPLICATION = '{{ project_name }}.wsgi.application'
|
WSGI_APPLICATION = '{{ project_name }}.wsgi.application'
|
||||||
|
|
||||||
|
|
||||||
|
@ -34,8 +129,8 @@ WSGI_APPLICATION = '{{ project_name }}.wsgi.application'
|
||||||
|
|
||||||
DATABASES = {
|
DATABASES = {
|
||||||
'default': {
|
'default': {
|
||||||
'ENGINE': 'django.db.backends.postgresql_psycopg2', # Add 'postgresql_psycopg2', 'mysql', 'sqlite3' or 'oracle'.
|
'ENGINE': 'django.db.backends.sqlite3',
|
||||||
'NAME': 'orchestra', # Or path to database file if using sqlite3.
|
'NAME': os.path.join(BASE_DIR, 'db.sqlite3'),
|
||||||
'USER': 'orchestra', # Not used with sqlite3.
|
'USER': 'orchestra', # Not used with sqlite3.
|
||||||
'PASSWORD': 'orchestra', # Not used with sqlite3.
|
'PASSWORD': 'orchestra', # Not used with sqlite3.
|
||||||
'HOST': 'localhost', # Set to empty string for localhost. Not used with sqlite3.
|
'HOST': 'localhost', # Set to empty string for localhost. Not used with sqlite3.
|
||||||
|
@ -45,6 +140,26 @@ DATABASES = {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
# Internationalization
|
||||||
|
# https://docs.djangoproject.com/en/{{ docs_version }}/topics/i18n/
|
||||||
|
|
||||||
|
LANGUAGE_CODE = 'en-us'
|
||||||
|
|
||||||
|
TIME_ZONE = 'UTC'
|
||||||
|
|
||||||
|
USE_I18N = True
|
||||||
|
|
||||||
|
USE_L10N = True
|
||||||
|
|
||||||
|
USE_TZ = True
|
||||||
|
|
||||||
|
|
||||||
|
# Static files (CSS, JavaScript, Images)
|
||||||
|
# https://docs.djangoproject.com/en/{{ docs_version }}/howto/static-files/
|
||||||
|
|
||||||
|
STATIC_URL = '/static/'
|
||||||
|
|
||||||
|
|
||||||
# Absolute path to the directory static files should be collected to.
|
# Absolute path to the directory static files should be collected to.
|
||||||
# Don't put anything in this directory yourself; store your static files
|
# Don't put anything in this directory yourself; store your static files
|
||||||
# in apps' "static/" subdirectories and in STATICFILES_DIRS.
|
# in apps' "static/" subdirectories and in STATICFILES_DIRS.
|
||||||
|
@ -61,12 +176,5 @@ LOCALE_PATHS = (
|
||||||
os.path.join(BASE_DIR, 'locale'),
|
os.path.join(BASE_DIR, 'locale'),
|
||||||
)
|
)
|
||||||
|
|
||||||
# EMAIL_HOST = 'smtp.yourhost.eu'
|
|
||||||
# EMAIL_PORT = ''
|
|
||||||
# EMAIL_HOST_USER = ''
|
|
||||||
# EMAIL_HOST_PASSWORD = ''
|
|
||||||
# EMAIL_USE_TLS = False
|
|
||||||
# DEFAULT_FROM_EMAIL = 'orchestra@yourhost.eu'
|
|
||||||
|
|
||||||
|
|
||||||
ORCHESTRA_SITE_NAME = '{{ project_name }}'
|
ORCHESTRA_SITE_NAME = '{{ project_name }}'
|
||||||
|
|
Loading…
Reference in a new issue