2017-02-03 10:04:57 +00:00
|
|
|
# -*- coding: utf-8
|
|
|
|
from __future__ import unicode_literals, absolute_import
|
2017-05-24 10:12:36 +00:00
|
|
|
import os
|
2017-02-03 10:04:57 +00:00
|
|
|
import django
|
|
|
|
|
|
|
|
DEBUG = True
|
|
|
|
USE_TZ = True
|
|
|
|
|
|
|
|
# SECURITY WARNING: keep the secret key used in production secret!
|
2017-05-24 10:12:36 +00:00
|
|
|
SECRET_KEY = 'kkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk'
|
2017-02-03 10:04:57 +00:00
|
|
|
|
|
|
|
DATABASES = {
|
2017-05-24 10:12:36 +00:00
|
|
|
'default': {
|
|
|
|
'ENGINE': 'django.db.backends.sqlite3',
|
|
|
|
'NAME': ':memory:',
|
2017-02-03 10:04:57 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2017-05-24 10:12:36 +00:00
|
|
|
ROOT_URLCONF = 'longclaw.tests.urls'
|
2017-02-03 10:04:57 +00:00
|
|
|
|
|
|
|
INSTALLED_APPS = [
|
2017-05-24 10:12:36 +00:00
|
|
|
'django.contrib.auth',
|
|
|
|
'django.contrib.contenttypes',
|
|
|
|
'django.contrib.sites',
|
2017-02-17 09:03:21 +00:00
|
|
|
'django.contrib.sessions',
|
2017-02-15 15:57:21 +00:00
|
|
|
|
|
|
|
'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',
|
|
|
|
|
2017-05-24 10:12:36 +00:00
|
|
|
'longclaw.longclawsettings',
|
|
|
|
'longclaw.longclawshipping',
|
|
|
|
'longclaw.longclawproducts',
|
|
|
|
'longclaw.longclaworders',
|
|
|
|
'longclaw.longclawcheckout',
|
|
|
|
'longclaw.longclawbasket',
|
|
|
|
'longclaw.tests.products',
|
2017-02-19 14:25:40 +00:00
|
|
|
|
2017-02-03 10:04:57 +00:00
|
|
|
]
|
|
|
|
|
|
|
|
SITE_ID = 1
|
|
|
|
|
2017-05-24 10:12:36 +00:00
|
|
|
MIDDLEWARE = [
|
|
|
|
'django.contrib.sessions.middleware.SessionMiddleware',
|
|
|
|
'django.middleware.common.CommonMiddleware',
|
|
|
|
'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,
|
|
|
|
},
|
|
|
|
]
|
|
|
|
|
2017-02-03 10:04:57 +00:00
|
|
|
if django.VERSION >= (1, 10):
|
2017-05-24 10:12:36 +00:00
|
|
|
MIDDLEWARE = MIDDLEWARE
|
2017-02-03 10:04:57 +00:00
|
|
|
else:
|
2017-05-24 10:12:36 +00:00
|
|
|
MIDDLEWARE_CLASSES = MIDDLEWARE
|
2017-02-19 14:25:40 +00:00
|
|
|
|
|
|
|
PRODUCT_VARIANT_MODEL = 'products.ProductVariant'
|