from settings.base import rel CONTEXT_PROCESSORS = ( 'django.contrib.auth.context_processors.auth', 'django.core.context_processors.request', 'django.core.context_processors.debug', 'django.core.context_processors.i18n', 'django.core.context_processors.media', 'django.core.context_processors.static', 'django.core.context_processors.tz', 'django.contrib.messages.context_processors.messages', ) TEMPLATES = [{ 'BACKEND': 'django.template.backends.jinja2.Jinja2', 'DIRS': [rel('templates')], 'APP_DIRS': False, 'OPTIONS': { 'environment': '{{ project_name }}.core.jinja.environment' }, }, { 'BACKEND': 'django.template.backends.django.DjangoTemplates', 'DIRS': [], 'APP_DIRS': True, 'OPTIONS': { 'context_processors': CONTEXT_PROCESSORS }, }]
from settings.base import rel STATIC_ROOT = rel('public', 'static') MEDIA_ROOT = rel('public', 'media') STATIC_URL = '/static/' MEDIA_URL = '/media/' STATICFILES_DIRS = (rel('static'),) STATICFILES_FINDERS = ( 'django.contrib.staticfiles.finders.FileSystemFinder', 'django.contrib.staticfiles.finders.AppDirectoriesFinder', 'djangobower.finders.BowerFinder' )
from settings.base import rel CONTEXT_PROCESSORS = ( 'django.contrib.auth.context_processors.auth', 'django.core.context_processors.request', 'django.core.context_processors.debug', 'django.core.context_processors.i18n', 'django.core.context_processors.media', 'django.core.context_processors.static', 'django.core.context_processors.tz', 'django.contrib.messages.context_processors.messages', # 'pangolinfog.context_processors.recaptcha', ) TEMPLATES = [ { 'BACKEND': 'django.template.backends.django.DjangoTemplates', 'DIRS': [rel('templates'), rel('product/templates'), ], 'APP_DIRS': True, 'OPTIONS': {'context_processors': CONTEXT_PROCESSORS}, } ]
from django.utils.translation import ugettext_lazy as _ from settings.base import rel TIME_ZONE = 'UTC' LANGUAGES = ( ('en', _('English')), ) LANGUAGE_CODE = 'en' USE_I18N = True USE_L10N = True USE_TZ = True LOCALE_PATHS = ( rel('locale'), )
from settings.base import rel LOG_FILE = rel('logs', 'app.log') LOG_FILE_SIZE = 1024 * 1024 * 16 # bytes LOG_FILE_BACKUP_COUNT = 10 LOGGING = { 'version': 1, 'disable_existing_loggers': True, 'filters': { 'require_debug_false': { '()': 'django.utils.log.RequireDebugFalse' } }, 'formatters': { 'complete': { 'format': '%(levelname)s:%(asctime)s:%(module)s %(message)s' }, 'simple': { 'format': '%(levelname)s:%(asctime)s: %(message)s' }, 'null': { 'format': '%(message)s', } }, 'handlers': { 'console': { 'level': 'INFO', 'class': 'logging.StreamHandler', 'formatter': 'complete' },
from settings.base import rel LOG_FILE = rel('logs', 'app.log') LOG_FILE_SIZE = 1024 * 1024 * 16 # bytes LOG_FILE_BACKUP_COUNT = 10 LOGGING = { 'version': 1, 'disable_existing_loggers': True, 'filters': { 'require_debug_false': { '()': 'django.utils.log.RequireDebugFalse' } }, 'formatters': { 'complete': { 'format': '%(levelname)s:%(asctime)s:%(module)s %(message)s' }, 'simple': { 'format': '%(levelname)s:%(asctime)s: %(message)s' }, 'null': { 'format': '%(message)s', } }, 'handlers': { 'null': { 'level': 'DEBUG', 'class': 'django.utils.log.NullHandler', }, 'console': {
from settings.base import rel CONTEXT_PROCESSORS = ( 'django.contrib.auth.context_processors.auth', 'django.core.context_processors.request', 'django.core.context_processors.debug', 'django.core.context_processors.i18n', 'django.core.context_processors.media', 'django.core.context_processors.static', 'django.core.context_processors.tz', 'django.contrib.messages.context_processors.messages', ) TEMPLATES = [{ 'BACKEND': 'django.template.backends.django.DjangoTemplates', 'DIRS': [ rel('templates'), rel('article/templates'), ], 'APP_DIRS': True, 'OPTIONS': { 'context_processors': CONTEXT_PROCESSORS }, }]
from settings.base import rel STATIC_ROOT = rel('public', 'staticfiles') MEDIA_ROOT = rel('public', 'media') STATIC_URL = '/static/' MEDIA_URL = '/media/' STATICFILES_DIRS = (rel('static'), ) STATICFILES_FINDERS = ( 'django.contrib.staticfiles.finders.FileSystemFinder', 'django.contrib.staticfiles.finders.AppDirectoriesFinder', ) # Simplified static file serving. # https://warehouse.python.org/project/whitenoise/ STATICFILES_STORAGE = 'whitenoise.django.GzipManifestStaticFilesStorage' IMAGE_UPLOAD_DIR = "img" SESSION_SAVE_EVERY_REQUEST = True CKEDITOR_UPLOAD_PATH = 'uploads/' CKEDITOR_IMAGE_BACKEND = 'pillow' CKEDITOR_CONFIGS = { "default": { "removePlugins": "stylesheetparser", 'allowedContent': True, 'toolbar': None,
from settings.base import rel CONTEXT_PROCESSORS = ( 'django.contrib.auth.context_processors.auth', 'django.core.context_processors.request', 'django.core.context_processors.debug', 'django.core.context_processors.i18n', 'django.core.context_processors.media', 'django.core.context_processors.static', 'django.core.context_processors.tz', 'django.contrib.messages.context_processors.messages', ) TEMPLATES = [{ 'BACKEND': 'django.template.backends.django.DjangoTemplates', 'DIRS': [ rel('templates'), # rel('product/templates'), ], 'APP_DIRS': True, 'OPTIONS': { 'context_processors': CONTEXT_PROCESSORS }, }]
from django.utils.translation import ugettext_lazy as _ from settings.base import rel TIME_ZONE = 'UTC' LANGUAGES = ( ('en', _('English')), ) LANGUAGE_CODE = 'en-US' USE_I18N = True USE_L10N = True USE_TZ = True LOCALE_PATHS = ( rel('locale'), )
from settings.base import rel CONTEXT_PROCESSORS = ( 'django.contrib.auth.context_processors.auth', 'django.core.context_processors.request', 'django.core.context_processors.debug', 'django.core.context_processors.i18n', 'django.core.context_processors.media', 'django.core.context_processors.static', 'django.core.context_processors.tz', 'django.contrib.messages.context_processors.messages', ) TEMPLATES = [{ 'BACKEND': 'django.template.backends.django.DjangoTemplates', 'DIRS': [ rel('templates'), rel('product/templates'), ], 'APP_DIRS': True, 'OPTIONS': { 'context_processors': CONTEXT_PROCESSORS }, }]
from settings.base import rel CONTEXT_PROCESSORS = ( 'django.contrib.auth.context_processors.auth', 'django.core.context_processors.request', 'django.core.context_processors.debug', 'django.core.context_processors.i18n', 'django.core.context_processors.media', 'django.core.context_processors.static', 'django.core.context_processors.tz', 'django.contrib.messages.context_processors.messages', ) TEMPLATES = [ { 'BACKEND': 'django.template.backends.jinja2.Jinja2', 'DIRS': [rel('templates')], 'APP_DIRS': False, 'OPTIONS': {'environment': '{{ project_name }}.conf.jinja2.environment'}, }, { 'BACKEND': 'django.template.backends.django.DjangoTemplates', 'DIRS': [], 'APP_DIRS': True, 'OPTIONS': {'context_processors': CONTEXT_PROCESSORS}, } ]
from django.utils.translation import ugettext_lazy as _ from settings.base import rel TIME_ZONE = 'UTC' LANGUAGES = ( ('en', _('English')), ('ru', _('Russian')), ) LANGUAGE_CODE = 'ru-RU' USE_I18N = True USE_L10N = True USE_TZ = True LOCALE_PATHS = (rel('locale'), )