Added loop to config for load configurations directly from settings module folder
This commit is contained in:
parent
7e02f24837
commit
35bc3dfe94
1 changed files with 6 additions and 0 deletions
|
|
@ -130,3 +130,9 @@ yes_static=True
|
||||||
#Database mysql config, if you want anything...
|
#Database mysql config, if you want anything...
|
||||||
|
|
||||||
#WebModel.connections={'default': {'name': 'default', 'host': 'localhost', 'user': 'root', 'password': '', 'db': 'example', 'charset': 'utf8mb4', 'set_connection': False} }
|
#WebModel.connections={'default': {'name': 'default', 'host': 'localhost', 'user': 'root', 'password': '', 'db': 'example', 'charset': 'utf8mb4', 'set_connection': False} }
|
||||||
|
|
||||||
|
for module in config.modules:
|
||||||
|
module+='.settings.config'
|
||||||
|
module_path=module.replace('.','/')+'.py'
|
||||||
|
if os.path.isfile(module_path):
|
||||||
|
mod=import_module(module)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue