From 449a99745e11ac33ef1e4a024b895fce07bd67f6 Mon Sep 17 00:00:00 2001 From: beckerfy <fynn.becker@hs-hannover.de> Date: Fri, 9 Nov 2018 13:15:39 +0100 Subject: [PATCH] Rename settings file, remove wsgi file --- postgrestutils/__init__.py | 2 +- postgrestutils/{settings.py => app_settings.py} | 0 postgrestutils/client/__init__.py | 4 ++-- postgrestutils/wsgi.py | 16 ---------------- 4 files changed, 3 insertions(+), 19 deletions(-) rename postgrestutils/{settings.py => app_settings.py} (100%) delete mode 100644 postgrestutils/wsgi.py diff --git a/postgrestutils/__init__.py b/postgrestutils/__init__.py index d3c1a16..7e075e3 100644 --- a/postgrestutils/__init__.py +++ b/postgrestutils/__init__.py @@ -1,6 +1,6 @@ import logging -from . import settings +from . import app_settings from requests import HTTPError logger = logging.getLogger("postgrestutils") diff --git a/postgrestutils/settings.py b/postgrestutils/app_settings.py similarity index 100% rename from postgrestutils/settings.py rename to postgrestutils/app_settings.py diff --git a/postgrestutils/client/__init__.py b/postgrestutils/client/__init__.py index 4767af5..e385b1e 100644 --- a/postgrestutils/client/__init__.py +++ b/postgrestutils/client/__init__.py @@ -1,5 +1,5 @@ from . import postgrestclient -from .. import settings +from .. import app_settings # the instance of the client to be used -pgrest_client = postgrestclient.PostgrestClient(settings.BASE_URI, settings.JWT) +pgrest_client = postgrestclient.PostgrestClient(app_settings.BASE_URI, app_settings.JWT) diff --git a/postgrestutils/wsgi.py b/postgrestutils/wsgi.py deleted file mode 100644 index fa40d01..0000000 --- a/postgrestutils/wsgi.py +++ /dev/null @@ -1,16 +0,0 @@ -""" -WSGI config for postgrestutils project. - -It exposes the WSGI callable as a module-level variable named ``application``. - -For more information on this file, see -https://docs.djangoproject.com/en/2.0/howto/deployment/wsgi/ -""" - -import os - -from django.core.wsgi import get_wsgi_application - -os.environ.setdefault("DJANGO_SETTINGS_MODULE", "postgrestutils.settings") - -application = get_wsgi_application() -- GitLab