Multiple fixes in paths, cleaning code...
This commit is contained in:
parent
dc58175760
commit
73f9a5589e
4 changed files with 12 additions and 18 deletions
|
|
@ -70,9 +70,10 @@ def start_app():
|
|||
a=import_module(module_app)
|
||||
|
||||
arr_module_path[key_app]=os.path.dirname(sys.modules[module_app].__file__)
|
||||
|
||||
app.register_blueprint(app_name, url_prefix=added_app[2])
|
||||
|
||||
if config.application_root=='/':
|
||||
app.register_blueprint(app_name, url_prefix=added_app[2])
|
||||
else:
|
||||
app.register_blueprint(app_name, url_prefix=config.application_root+'/'+added_app[2][1:])
|
||||
"""
|
||||
module_app=config.apps[added_app][0]
|
||||
|
||||
|
|
@ -87,7 +88,7 @@ def start_app():
|
|||
|
||||
#Add media files support. Only for development.
|
||||
|
||||
@app.route('/mediafrom/<module>/<path:media_file>')
|
||||
@app.route(config.application_root+'mediafrom/<module>/<path:media_file>')
|
||||
def send_media_file(module, media_file):
|
||||
|
||||
file_path=workdir+'/themes/'+config.theme+'/media/'+module+'/'+media_file
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue