[extensions-web] Updated settings file after moving to django 1.11
- From: Yuri Konotopov <ykonotopov src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [extensions-web] Updated settings file after moving to django 1.11
- Date: Sat, 12 Jan 2019 14:10:17 +0000 (UTC)
commit 9ce1e08e506bca7276c8e1e09f1f3b239f3bc09e
Author: Claude Paroz <claude 2xlibre net>
Date: Sat Jan 12 10:24:59 2019 +0100
Updated settings file after moving to django 1.11
sweettooth/settings.py | 22 +++++++---------------
1 file changed, 7 insertions(+), 15 deletions(-)
---
diff --git a/sweettooth/settings.py b/sweettooth/settings.py
index 148dd24..8ea01e7 100644
--- a/sweettooth/settings.py
+++ b/sweettooth/settings.py
@@ -1,13 +1,8 @@
"""
Django settings for sweettooth project.
-Generated by 'django-admin startproject' using Django 1.8.15.
-
-For more information on this file, see
-https://docs.djangoproject.com/en/1.8/topics/settings/
-
For the full list of settings and their values, see
-https://docs.djangoproject.com/en/1.8/ref/settings/
+https://docs.djangoproject.com/en/stable/ref/settings/
"""
# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
@@ -21,7 +16,7 @@ BASE_DIR = os.path.dirname(SITE_ROOT)
XAPIAN_DB_PATH = os.getenv('EGO_XAPIAN_DB') or os.path.join(BASE_DIR, 'xapian.db')
# Quick-start development settings - unsuitable for production
-# See https://docs.djangoproject.com/en/1.8/howto/deployment/checklist/
+# See https://docs.djangoproject.com/en/stable/howto/deployment/checklist/
# SECURITY WARNING: keep the secret key used in production secret!
# Set this in local_settings.py to some random value
@@ -57,13 +52,10 @@ INSTALLED_APPS = (
'sweettooth.errorreports',
'sweettooth.templates',
- # Uncomment the next line to enable the admin:
'django.contrib.admin',
- # Uncomment the next line to enable admin documentation:
- # 'django.contrib.admindocs'
)
-MIDDLEWARE_CLASSES = (
+MIDDLEWARE = (
'django.middleware.common.CommonMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
'django.middleware.csrf.CsrfViewMiddleware',
@@ -106,14 +98,14 @@ WSGI_APPLICATION = 'sweettooth.wsgi.application'
# Database
-# https://docs.djangoproject.com/en/1.8/ref/settings/#databases
+# https://docs.djangoproject.com/en/stable/ref/settings/#databases
DATABASES = {
'default': dj_database_url.config(env="EGO_DATABASE_URL", default="sqlite://test.db")
}
# Internationalization
-# https://docs.djangoproject.com/en/1.8/topics/i18n/
+# https://docs.djangoproject.com/en/stable/topics/i18n/
LANGUAGE_CODE = 'en-us'
@@ -143,7 +135,7 @@ MEDIA_ROOT = os.getenv('EGO_MEDIA_ROOT') or os.path.join(SITE_ROOT, '..', 'uploa
MEDIA_URL = '/extension-data/'
# Static files (CSS, JavaScript, Images)
-# https://docs.djangoproject.com/en/1.8/howto/static-files/
+# https://docs.djangoproject.com/en/stable/howto/static-files/
STATIC_URL = '/static/'
@@ -159,7 +151,7 @@ LOGIN_URL = '/accounts/login/'
COMMENTS_APP = 'sweettooth.ratings'
-# See http://docs.djangoproject.com/en/dev/topics/logging for
+# See http://docs.djangoproject.com/en/stable/topics/logging for
# more details on how to customize your logging configuration.
from django.utils.log import DEFAULT_LOGGING as LOGGING
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]