mirror of
https://github.com/pinry/pinry.git
synced 2025-11-13 16:45:41 +01:00
57 lines
1.5 KiB
Python
57 lines
1.5 KiB
Python
import os
|
|
|
|
|
|
SITE_ROOT = os.path.join(os.path.realpath(os.path.dirname(__file__)), '../../')
|
|
|
|
|
|
TIME_ZONE = 'America/New_York'
|
|
LANGUAGE_CODE = 'en-us'
|
|
USE_I18N = True
|
|
USE_L10N = True
|
|
USE_TZ = True
|
|
|
|
MEDIA_ROOT = os.path.join(SITE_ROOT, 'media/')
|
|
MEDIA_URL = '/media/'
|
|
STATIC_ROOT = os.path.join(SITE_ROOT, 'static/')
|
|
STATIC_URL = '/static/'
|
|
|
|
STATICFILES_FINDERS = (
|
|
'django.contrib.staticfiles.finders.FileSystemFinder',
|
|
'django.contrib.staticfiles.finders.AppDirectoriesFinder',
|
|
)
|
|
TEMPLATE_LOADERS = (
|
|
'django.template.loaders.filesystem.Loader',
|
|
'django.template.loaders.app_directories.Loader',
|
|
)
|
|
MIDDLEWARE_CLASSES = (
|
|
'django.middleware.common.CommonMiddleware',
|
|
'django.contrib.sessions.middleware.SessionMiddleware',
|
|
'django.contrib.auth.middleware.AuthenticationMiddleware',
|
|
'django.contrib.messages.middleware.MessageMiddleware',
|
|
)
|
|
TEMPLATE_CONTEXT_PROCESSORS = (
|
|
"django.contrib.auth.context_processors.auth",
|
|
"django.core.context_processors.debug",
|
|
"django.core.context_processors.i18n",
|
|
"django.core.context_processors.media",
|
|
"django.core.context_processors.static",
|
|
"django.contrib.messages.context_processors.messages",
|
|
)
|
|
|
|
ROOT_URLCONF = 'pinry.urls'
|
|
WSGI_APPLICATION = 'pinry.wsgi.application'
|
|
LOGIN_REDIRECT_URL = '/'
|
|
INTERNAL_IPS = ['127.0.0.1']
|
|
|
|
INSTALLED_APPS = (
|
|
'django.contrib.auth',
|
|
'django.contrib.contenttypes',
|
|
'django.contrib.sessions',
|
|
'django.contrib.messages',
|
|
'django.contrib.staticfiles',
|
|
'south',
|
|
'pinry.vendor',
|
|
'pinry.core',
|
|
'pinry.pins',
|
|
)
|