Remove comment links to Django 1.11 docs

master
Cristi Vîjdea 2018-12-21 15:55:23 +02:00
parent 86ac276449
commit 01391ca9eb
4 changed files with 0 additions and 15 deletions

View File

@ -7,9 +7,6 @@ if __name__ == "__main__":
try:
from django.core.management import execute_from_command_line
except ImportError:
# The above import may fail for some other reason. Ensure that the
# issue is really that Django is missing to avoid masking other
# exceptions on Python 2.
try:
import django # noqa: F401
except ImportError:

View File

@ -70,8 +70,6 @@ WSGI_APPLICATION = 'testproj.wsgi.application'
LOGIN_URL = reverse_lazy('admin:login')
# Password validation
# https://docs.djangoproject.com/en/1.11/ref/settings/#auth-password-validators
AUTH_PASSWORD_VALIDATORS = [
{
'NAME': 'django.contrib.auth.password_validation.UserAttributeSimilarityValidator',
@ -88,7 +86,6 @@ AUTH_PASSWORD_VALIDATORS = [
]
# Django Rest Framework
REST_FRAMEWORK = {
'DEFAULT_PERMISSION_CLASSES': (
'rest_framework.permissions.IsAuthenticated',
@ -151,8 +148,6 @@ REDOC_SETTINGS = {
}
# Internationalization
# https://docs.djangoproject.com/en/1.11/topics/i18n/
LANGUAGE_CODE = 'en-us'
TIME_ZONE = 'UTC'
USE_I18N = True
@ -160,8 +155,6 @@ USE_L10N = True
USE_TZ = True
# Static files (CSS, JavaScript, Images)
# https://docs.djangoproject.com/en/1.11/howto/static-files/
STATIC_URL = '/static/'
STATIC_ROOT = os.path.join(BASE_DIR, 'staticfiles')
STATICFILES_DIRS = [
@ -169,11 +162,9 @@ STATICFILES_DIRS = [
]
# Testing
TEST_RUNNER = 'testproj.runner.PytestTestRunner'
# Logging configuration
LOGGING = {
'version': 1,
'disable_existing_loggers': True,

View File

@ -23,8 +23,6 @@ STATICFILES_STORAGE = 'whitenoise.storage.CompressedManifestStaticFilesStorage'
MIDDLEWARE.insert(0, 'whitenoise.middleware.WhiteNoiseMiddleware')
# Database
# https://docs.djangoproject.com/en/1.11/ref/settings/#databases
DATABASES = {
'default': dj_database_url.config(conn_max_age=600)
}

View File

@ -15,7 +15,6 @@ DATABASES = {
}
# Quick-start development settings - unsuitable for production
# See https://docs.djangoproject.com/en/1.11/howto/deployment/checklist/
# SECURITY WARNING: keep the secret key used in production secret!
SECRET_KEY = '!z1yj(9uz)zk0gg@5--j)bc4h^i!8))r^dezco8glf190e0&#p'