dav_base: moved constants into config
Run tests / Execute tox to run the test suite (push) Successful in 3m36s
Run tests / Execute tox to run the test suite (push) Successful in 3m36s
This commit is contained in:
@@ -1,2 +1,3 @@
|
||||
from .constants import DJANGO_MAIN_MODULE, MODULE_APP_SETTINGS_PREFIX, MODULES_CONFIG_FILE_NAME
|
||||
from . import apps
|
||||
from . import modules
|
||||
|
||||
@@ -4,7 +4,7 @@ import re
|
||||
from django.apps import AppConfig as _AppConfig
|
||||
from django.core.exceptions import ImproperlyConfigured
|
||||
|
||||
from ..constants import DJANGO_MAIN_MODULE, MODULE_APP_SETTINGS_PREFIX
|
||||
from ..config import DJANGO_MAIN_MODULE, MODULE_APP_SETTINGS_PREFIX
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
|
||||
@@ -0,0 +1,3 @@
|
||||
DJANGO_MAIN_MODULE = 'main'
|
||||
MODULES_CONFIG_FILE_NAME = 'module_config.json'
|
||||
MODULE_APP_SETTINGS_PREFIX = 'settings-'
|
||||
@@ -5,7 +5,7 @@ from importlib.resources import files as resource_files
|
||||
from django.conf import settings
|
||||
from django.urls import re_path, include
|
||||
|
||||
from ..constants import DJANGO_MAIN_MODULE, MODULES_CONFIG_FILE_NAME
|
||||
from ..config import DJANGO_MAIN_MODULE, MODULES_CONFIG_FILE_NAME
|
||||
|
||||
|
||||
class ModuleConfigError(Exception):
|
||||
|
||||
Reference in New Issue
Block a user