diff --git a/postgrestutils/__init__.py b/postgrestutils/__init__.py index d3c1a1658253b4ec4af6e95e425ff76e6bd3484c..7e075e336a6ff44ce7925af53c3b82751c5f20d9 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 4767af51346fdb2df77695b0ad4da48b0a90b138..e385b1e613fb441c7aa2fbedb2ef389ffda36c48 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 fa40d01d8f9d3bd8941c9209c344f88abe02eda6..0000000000000000000000000000000000000000 --- 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()