kopia lustrzana https://github.com/longclawshop/longclaw
97 wiersze
2.5 KiB
Python
97 wiersze
2.5 KiB
Python
# -*- coding: utf-8
|
|
from __future__ import unicode_literals, absolute_import
|
|
import os
|
|
import django
|
|
|
|
DEBUG = True
|
|
USE_TZ = True
|
|
|
|
# SECURITY WARNING: keep the secret key used in production secret!
|
|
SECRET_KEY = 'kkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk'
|
|
|
|
DATABASES = {
|
|
'default': {
|
|
'ENGINE': 'django.db.backends.sqlite3',
|
|
'NAME': ':memory:',
|
|
}
|
|
}
|
|
|
|
ROOT_URLCONF = 'longclaw.tests.urls'
|
|
|
|
INSTALLED_APPS = [
|
|
'django.contrib.admin',
|
|
'django.contrib.auth',
|
|
'django.contrib.contenttypes',
|
|
'django.contrib.sites',
|
|
'django.contrib.sessions',
|
|
'django.contrib.staticfiles',
|
|
|
|
'wagtail.wagtailforms',
|
|
'wagtail.wagtailredirects',
|
|
'wagtail.wagtailembeds',
|
|
'wagtail.wagtailsites',
|
|
'wagtail.wagtailusers',
|
|
'wagtail.wagtailsnippets',
|
|
'wagtail.wagtaildocs',
|
|
'wagtail.wagtailimages',
|
|
'wagtail.wagtailsearch',
|
|
'wagtail.wagtailadmin',
|
|
'wagtail.wagtailcore',
|
|
'wagtail.contrib.modeladmin',
|
|
'wagtail.contrib.settings',
|
|
|
|
'modelcluster',
|
|
'taggit',
|
|
'rest_framework',
|
|
'django_extensions',
|
|
|
|
'longclaw.longclawcore',
|
|
'longclaw.longclawsettings',
|
|
'longclaw.longclawshipping',
|
|
'longclaw.longclawproducts',
|
|
'longclaw.longclaworders',
|
|
'longclaw.longclawcheckout',
|
|
'longclaw.longclawbasket',
|
|
'longclaw.longclawstats',
|
|
'longclaw.contrib.productrequests',
|
|
'longclaw.tests.products',
|
|
]
|
|
|
|
SITE_ID = 1
|
|
|
|
MIDDLEWARE = [
|
|
'django.contrib.sessions.middleware.SessionMiddleware',
|
|
'django.middleware.common.CommonMiddleware',
|
|
'django.contrib.auth.middleware.AuthenticationMiddleware',
|
|
'django.contrib.auth.middleware.SessionAuthenticationMiddleware',
|
|
'wagtail.wagtailcore.middleware.SiteMiddleware',
|
|
'wagtail.wagtailredirects.middleware.RedirectMiddleware',
|
|
]
|
|
|
|
TEMPLATES = [
|
|
{
|
|
'BACKEND': 'django.template.backends.django.DjangoTemplates',
|
|
'DIRS': [
|
|
os.path.join(os.path.dirname(__file__), 'templates'),
|
|
],
|
|
'APP_DIRS': True,
|
|
'OPTIONS': {
|
|
'context_processors': [
|
|
'django.template.context_processors.debug',
|
|
'django.template.context_processors.request',
|
|
'django.contrib.auth.context_processors.auth',
|
|
'longclaw.longclawsettings.context_processors.currency',
|
|
],
|
|
},
|
|
},
|
|
]
|
|
|
|
if django.VERSION >= (1, 10):
|
|
MIDDLEWARE = MIDDLEWARE
|
|
else:
|
|
MIDDLEWARE_CLASSES = MIDDLEWARE
|
|
|
|
STATIC_URL = '/static/'
|
|
|
|
PRODUCT_VARIANT_MODEL = 'products.ProductVariant'
|