about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--README.org6
-rw-r--r--uploader/__init__.py4
2 files changed, 5 insertions, 5 deletions
diff --git a/README.org b/README.org
index c2b7c3b..ca77653 100644
--- a/README.org
+++ b/README.org
@@ -197,7 +197,7 @@ few environment variables
 #+BEGIN_SRC shell
 export FLASK_APP=wsgi.py
 export FLASK_ENV=development
-export QCAPP_INSTANCE_PATH=/path/to/directory/with/config.py
+export UPLOADER_CONF=/path/to/directory/with/uploader/configuration.py
 #+END_SRC
 then you can run the application with
 #+BEGIN_SRC shell
@@ -218,13 +218,13 @@ To check for correct type usage in the application, run:
 
 Run unit tests with:
 #+BEGIN_SRC shell
-  $ export QCAPP_CONF=</path/to/configuration/file.py>
+  $ export UPLOADER_CONF=</path/to/configuration/file.py>
   $ pytest -m unit_test
 #+END_SRC
 
 To run ALL tests (not just unit tests):
 #+BEGIN_SRC shell
-  $ export QCAPP_CONF=</path/to/configuration/file.py>
+  $ export UPLOADER_CONF=</path/to/configuration/file.py>
   $ pytest
 #+END_SRC
 
diff --git a/uploader/__init__.py b/uploader/__init__.py
index 00ed7e7..feffcae 100644
--- a/uploader/__init__.py
+++ b/uploader/__init__.py
@@ -25,8 +25,8 @@ def create_app():
     app = Flask(__name__)
     app.config.from_pyfile(
         Path(__file__).parent.joinpath("default_settings.py"))
-    if "QCAPP_CONF" in os.environ:
-        app.config.from_envvar("QCAPP_CONF") # Override defaults with instance path
+    if "UPLOADER_CONF" in os.environ:
+        app.config.from_envvar("UPLOADER_CONF") # Override defaults with instance path
 
     override_settings_with_envvars(app, ignore=tuple())