Now, paramecio2 load automatically the wsgi flask apps
This commit is contained in:
parent
f4f4e69a16
commit
90e0838459
4 changed files with 32 additions and 17 deletions
|
|
@ -64,14 +64,13 @@ def admin_finished(response):
|
|||
|
||||
for app in config.apps:
|
||||
module_app=config.apps[app][0]
|
||||
|
||||
module_path=os.path.dirname(sys.modules[module_app].__file__)
|
||||
|
||||
|
||||
if os.path.isfile(module_path+'/settings/config_admin.py'):
|
||||
#print(module_path+'/settings/config_admin.py')
|
||||
pos_last_point=module_app.rfind('.')
|
||||
|
||||
config_path=module_app[:pos_last_point]+'.settings.config_admin'
|
||||
|
||||
|
||||
config_path=module_app+'.settings.config_admin'
|
||||
|
||||
a=import_module(config_path)
|
||||
|
||||
arr_modules_admin={}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue