Remove the INSTALLED_APPS setting

The INSTALLED APPS setting is now replaced by the
new COMMON_EXTRA_APPS and COMMON_DISABLED_APPS.

Exposing the INSTALLED_APPS setting had the side effect
of blocking new apps that were added in new versions.

Signed-off-by: Roberto Rosario <roberto.rosario@mayan-edms.com>
This commit is contained in:
Roberto Rosario
2019-06-28 23:26:29 -04:00
parent 8141748677
commit ff03186a2c
4 changed files with 35 additions and 10 deletions
+11
View File
@@ -358,6 +358,8 @@ else:
BASE_INSTALLED_APPS = INSTALLED_APPS
COMMON_EXTRA_APPS = ()
COMMON_DISABLED_APPS = ()
CONFIGURATION_FILEPATH = os.path.join(MEDIA_ROOT, CONFIGURATION_FILENAME)
CONFIGURATION_LAST_GOOD_FILEPATH = os.path.join(
@@ -376,3 +378,12 @@ for app in INSTALLED_APPS:
'Update the app references in the file config.yml as detailed '
'in https://docs.mayan-edms.com/releases/3.2.html#backward-incompatible-changes'
)
for APP in COMMON_EXTRA_APPS:
INSTALLED_APPS = INSTALLED_APPS + (APP,)
INSTALLED_APPS = [
APP for APP in INSTALLED_APPS if APP not in COMMON_DISABLED_APPS
]