Created
January 19, 2017 20:00
-
-
Save gileno/30ab5a57abf2036b4017d46eb13273b3 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# coding=utf-8 | |
import os | |
DEBUG = True | |
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) | |
DATABASES = { | |
'default': { | |
'ENGINE': 'django.db.backends.sqlite3', | |
'NAME': os.path.join(BASE_DIR, 'db.sqlite3'), | |
} | |
} | |
MIDDLEWARE = [ | |
'django.middleware.security.SecurityMiddleware', | |
'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', | |
'checkout.middleware.cart_item_middleware', | |
] | |
EMAIL_BACKEND = 'django.core.mail.backends.console.EmailBackend' | |
STATICFILES_STORAGE = 'django.contrib.staticfiles.storage.StaticFilesStorage' | |
DEFAULT_FILE_STORAGE = 'django.core.files.storage.FileSystemStorage' | |
STATIC_URL = '/static/' | |
MEDIA_URL = '/media/' | |
MEDIA_ROOT = os.path.join(BASE_DIR, 'media') | |
STATIC_ROOT = os.path.join(BASE_DIR, 'static') | |
THUMBNAIL_DEFAULT_STORAGE = DEFAULT_FILE_STORAGE |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment