# -*- 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.auth', 'django.contrib.contenttypes', 'django.contrib.sites', 'django.contrib.sessions', '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.longclawsettings', 'longclaw.longclawshipping', 'longclaw.longclawproducts', 'longclaw.longclaworders', 'longclaw.longclawcheckout', 'longclaw.longclawbasket', 'longclaw.tests.products', ] SITE_ID = 1 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, }, ] if django.VERSION >= (1, 10): MIDDLEWARE = MIDDLEWARE else: MIDDLEWARE_CLASSES = MIDDLEWARE PRODUCT_VARIANT_MODEL = 'products.ProductVariant'