from quizfactory import app
import quizfactory.settings
from quizfactory.__main__ import setup

setup(quizfactory.settings)

@@ -1,28 +1,36 @@
-from quizfactory
+import os%0Afrom importlib
  import 
 app%0A
@@ -29,18 +29,27 @@
 ort 
-app%0A
 import
+_module%0A%0Afrom
  qui
@@ -56,25 +56,27 @@
 zfactory
-.settings
+ import app
 %0Afrom qu
@@ -112,32 +112,126 @@
 up%0A%0A
-setup(quizfactory.settings
+module_name = os.getenv(%22QUIZFACTORY_SETTINGS%22, %22quizfactory.settings%22)%0Amodule = import_module(module_name)%0Asetup(module
 )%0A

add getenv to uwsgi