Skip to content
Snippets Groups Projects
Commit 37ae63b7 authored by Tanner Prestegard's avatar Tanner Prestegard Committed by GraceDB
Browse files

Moving django-extensions into base settings

django-extensions was just in the test settings before (i.e., not
deployed on production), but it is pretty nice and useful, so we
are moving it into the base settings so that it can be used
everywhere!
parent 52c2cd03
No related branches found
No related tags found
No related merge requests found
......@@ -293,8 +293,15 @@ INSTALLED_APPS = [
'rest_framework',
'guardian',
'django_twilio',
'django_extensions',
]
# Aliases for django-extensions shell_plus
SHELL_PLUS_MODEL_ALIASES = {
# Two 'Group' models - auth.Group and gracedb.Group
'auth': {'Group': 'AuthGroup'},
}
# Details used by REST API
REST_FRAMEWORK = {
'PAGINATE_BY': 10,
......
......@@ -22,7 +22,6 @@ MIDDLEWARE += [
# Add to installed apps
INSTALLED_APPS += [
'debug_toolbar',
'django_extensions',
]
# Add testserver to ALLOWED_HOSTS
......@@ -42,9 +41,3 @@ if DEBUG and debug_middleware in MIDDLEWARE:
INTERNAL_IPS = [
socket.gethostbyname(socket.gethostname()),
]
# Aliases for django-extensions shell_plus
# We have two 'Group' models - auth.Group and gracedb.Group
SHELL_PLUS_MODEL_ALIASES = {
'auth': {'Group': 'AuthGroup'},
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment