Browse Source

Feature: Should not ignore local_settings in gunicorn

pull/175/head
winkidney 4 years ago
parent
commit
312db13171
2 changed files with 2 additions and 6 deletions
  1. +2
    -4
      pinry/settings/docker.py
  2. +0
    -2
      pinry/wsgi.py

+ 2
- 4
pinry/settings/docker.py View File

@@ -36,7 +36,5 @@ REST_FRAMEWORK['DEFAULT_RENDERER_CLASSES'] = [
'rest_framework.renderers.JSONRenderer',
]

try:
from .local_settings import *
except ImportError:
pass
# should not ignore import error in production, local_settings is required
from .local_settings import *

+ 0
- 2
pinry/wsgi.py View File

@@ -1,6 +1,4 @@
import os
from django.core.wsgi import get_wsgi_application


os.environ.setdefault("DJANGO_SETTINGS_MODULE", "pinry.settings.docker")
application = get_wsgi_application()

Loading…
Cancel
Save