Skip to content

Commit

Permalink
Remove unused settings
Browse files Browse the repository at this point in the history
  • Loading branch information
Merlin Buczek committed May 3, 2019
1 parent 3a9f037 commit 1ed9e82
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 28 deletions.
2 changes: 1 addition & 1 deletion config/settings/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@
'taggit',
]
LOCAL_APPS = [
'cms',
'mpicms.cms.apps.CMSAppConfig',
]
INSTALLED_APPS = DJANGO_APPS + THIRD_PARTY_APPS + LOCAL_APPS

Expand Down
28 changes: 1 addition & 27 deletions config/settings/production.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,28 +17,13 @@
DATABASES['default']['ATOMIC_REQUESTS'] = True # noqa F405
DATABASES['default']['CONN_MAX_AGE'] = env.int('CONN_MAX_AGE', default=60) # noqa F405

# CACHES
# ------------------------------------------------------------------------------
CACHES = {
'default': {
'BACKEND': 'django_redis.cache.RedisCache',
'LOCATION': env('REDIS_URL'),
'OPTIONS': {
'CLIENT_CLASS': 'django_redis.client.DefaultClient',
# Mimicing memcache behavior.
# http://niwinz.github.io/django-redis/latest/#_memcached_exceptions_behavior
'IGNORE_EXCEPTIONS': True,
}
}
}

# AUTHENTICATION
AUTHENTICATION_BACKENDS = [
'django_auth_ldap.backend.LDAPBackend',
# 'django.contrib.auth.backends.ModelBackend',
]

AUTH_LDAP_SERVER_URI = "ldap://127.0.0.1:10389/"
AUTH_LDAP_SERVER_URI = end('LDAP_URI')

AUTH_LDAP_BIND_DN = ""
AUTH_LDAP_BIND_PASSWORD = ""
Expand Down Expand Up @@ -115,17 +100,6 @@
# Django Admin URL regex.
ADMIN_URL = env('DJANGO_ADMIN_URL')

# Anymail (Mailgun)
# ------------------------------------------------------------------------------
# https://anymail.readthedocs.io/en/stable/installation/#installing-anymail
INSTALLED_APPS += ['anymail'] # noqa F405
EMAIL_BACKEND = 'anymail.backends.mailgun.EmailBackend'
# https://anymail.readthedocs.io/en/stable/installation/#anymail-settings-reference
ANYMAIL = {
'MAILGUN_API_KEY': env('MAILGUN_API_KEY'),
'MAILGUN_SENDER_DOMAIN': env('MAILGUN_DOMAIN')
}

# LOGGING
# ------------------------------------------------------------------------------
LOGGING = {
Expand Down

0 comments on commit 1ed9e82

Please sign in to comment.