|
|
@ -16,7 +16,6 @@ import os
|
|
|
|
PROJECT_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
|
|
|
|
PROJECT_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
|
|
|
|
BASE_DIR = os.path.dirname(PROJECT_DIR)
|
|
|
|
BASE_DIR = os.path.dirname(PROJECT_DIR)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Quick-start development settings - unsuitable for production
|
|
|
|
# Quick-start development settings - unsuitable for production
|
|
|
|
# See https://docs.djangoproject.com/en/2.1/howto/deployment/checklist/
|
|
|
|
# See https://docs.djangoproject.com/en/2.1/howto/deployment/checklist/
|
|
|
|
|
|
|
|
|
|
|
@ -73,6 +72,7 @@ TEMPLATES = [
|
|
|
|
"django.template.context_processors.request",
|
|
|
|
"django.template.context_processors.request",
|
|
|
|
"django.contrib.auth.context_processors.auth",
|
|
|
|
"django.contrib.auth.context_processors.auth",
|
|
|
|
"django.contrib.messages.context_processors.messages",
|
|
|
|
"django.contrib.messages.context_processors.messages",
|
|
|
|
|
|
|
|
"cms.context_processors.commenting"
|
|
|
|
]
|
|
|
|
]
|
|
|
|
},
|
|
|
|
},
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -80,7 +80,6 @@ TEMPLATES = [
|
|
|
|
|
|
|
|
|
|
|
|
WSGI_APPLICATION = "cms.wsgi.application"
|
|
|
|
WSGI_APPLICATION = "cms.wsgi.application"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Database
|
|
|
|
# Database
|
|
|
|
# https://docs.djangoproject.com/en/2.1/ref/settings/#databases
|
|
|
|
# https://docs.djangoproject.com/en/2.1/ref/settings/#databases
|
|
|
|
|
|
|
|
|
|
|
@ -104,7 +103,6 @@ AUTH_PASSWORD_VALIDATORS = [
|
|
|
|
{"NAME": "django.contrib.auth.password_validation.NumericPasswordValidator"},
|
|
|
|
{"NAME": "django.contrib.auth.password_validation.NumericPasswordValidator"},
|
|
|
|
]
|
|
|
|
]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Internationalization
|
|
|
|
# Internationalization
|
|
|
|
# https://docs.djangoproject.com/en/2.1/topics/i18n/
|
|
|
|
# https://docs.djangoproject.com/en/2.1/topics/i18n/
|
|
|
|
|
|
|
|
|
|
|
@ -118,7 +116,6 @@ USE_L10N = True
|
|
|
|
|
|
|
|
|
|
|
|
USE_TZ = True
|
|
|
|
USE_TZ = True
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Static files (CSS, JavaScript, Images)
|
|
|
|
# Static files (CSS, JavaScript, Images)
|
|
|
|
# https://docs.djangoproject.com/en/2.1/howto/static-files/
|
|
|
|
# https://docs.djangoproject.com/en/2.1/howto/static-files/
|
|
|
|
|
|
|
|
|
|
|
@ -140,7 +137,6 @@ STATIC_URL = "/static/"
|
|
|
|
MEDIA_ROOT = os.path.join(BASE_DIR, "media")
|
|
|
|
MEDIA_ROOT = os.path.join(BASE_DIR, "media")
|
|
|
|
MEDIA_URL = "/media/"
|
|
|
|
MEDIA_URL = "/media/"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Wagtail settings
|
|
|
|
# Wagtail settings
|
|
|
|
|
|
|
|
|
|
|
|
WAGTAIL_SITE_NAME = "datasketch.io"
|
|
|
|
WAGTAIL_SITE_NAME = "datasketch.io"
|
|
|
@ -148,3 +144,10 @@ WAGTAIL_SITE_NAME = "datasketch.io"
|
|
|
|
# Base URL to use when referring to full URLs within the Wagtail admin backend -
|
|
|
|
# Base URL to use when referring to full URLs within the Wagtail admin backend -
|
|
|
|
# e.g. in notification emails. Don't include '/admin' or a trailing slash
|
|
|
|
# e.g. in notification emails. Don't include '/admin' or a trailing slash
|
|
|
|
BASE_URL = "https://datasketch.io"
|
|
|
|
BASE_URL = "https://datasketch.io"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
INTERNAL_IPS = [
|
|
|
|
|
|
|
|
'127.0.0.1',
|
|
|
|
|
|
|
|
]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Disqus comment integration
|
|
|
|
|
|
|
|
COMMENTING = False
|