mirror of
https://github.com/Tivix/django-rest-auth.git
synced 2024-11-29 12:23:43 +03:00
Remove old settings/compat
This commit is contained in:
parent
ac9ed03290
commit
3aa39bfd30
|
@ -1,23 +1,3 @@
|
|||
import os
|
||||
import sys
|
||||
|
||||
PROJECT_ROOT = os.path.abspath(os.path.split(os.path.split(__file__)[0])[0])
|
||||
|
||||
ROOT_URLCONF = 'urls'
|
||||
STATIC_URL = '/static/'
|
||||
STATIC_ROOT = '%s/staticserve' % PROJECT_ROOT
|
||||
STATICFILES_DIRS = (
|
||||
('global', '%s/static' % PROJECT_ROOT),
|
||||
)
|
||||
UPLOADS_DIR_NAME = 'uploads'
|
||||
MEDIA_URL = '/%s/' % UPLOADS_DIR_NAME
|
||||
MEDIA_ROOT = os.path.join(PROJECT_ROOT, '%s' % UPLOADS_DIR_NAME)
|
||||
|
||||
IS_DEV = False
|
||||
IS_STAGING = False
|
||||
IS_PROD = False
|
||||
IS_TEST = 'test' in sys.argv or 'test_coverage' in sys.argv
|
||||
|
||||
DATABASES = {
|
||||
'default': {
|
||||
'ENGINE': 'django.db.backends.sqlite3',
|
||||
|
@ -33,10 +13,12 @@ MIDDLEWARE = [
|
|||
'django.contrib.messages.middleware.MessageMiddleware'
|
||||
]
|
||||
|
||||
# Adding for backwards compatibility for Django 1.8 tests
|
||||
MIDDLEWARE_CLASSES = MIDDLEWARE
|
||||
|
||||
TEMPLATE_CONTEXT_PROCESSORS = [
|
||||
TEMPLATES = [
|
||||
{
|
||||
'BACKEND': 'django.template.backends.django.DjangoTemplates',
|
||||
'APP_DIRS': True,
|
||||
'OPTIONS': {
|
||||
'context_processors': [
|
||||
'django.contrib.auth.context_processors.auth',
|
||||
'django.core.context_processors.debug',
|
||||
'django.core.context_processors.media',
|
||||
|
@ -46,18 +28,7 @@ TEMPLATE_CONTEXT_PROCESSORS = [
|
|||
|
||||
"allauth.account.context_processors.account",
|
||||
"allauth.socialaccount.context_processors.socialaccount",
|
||||
]
|
||||
|
||||
# avoid deprecation warnings during tests
|
||||
TEMPLATES = [
|
||||
{
|
||||
'BACKEND': 'django.template.backends.django.DjangoTemplates',
|
||||
'DIRS': [
|
||||
# insert your TEMPLATE_DIRS here
|
||||
],
|
||||
'APP_DIRS': True,
|
||||
'OPTIONS': {
|
||||
'context_processors': TEMPLATE_CONTEXT_PROCESSORS,
|
||||
},
|
||||
},
|
||||
]
|
||||
|
|
Loading…
Reference in New Issue
Block a user