diff --git a/controldeck.py b/controldeck.py index 20b599b..07f8488 100755 --- a/controldeck.py +++ b/controldeck.py @@ -31,16 +31,12 @@ CACHE_DIR = path.join(path.expanduser('~'), '.cache', APP_NAME.lower()) STATIC_DIR = path.join(CACHE_DIR, 'static') # justpy config overwrite -# NEEDS to be done before loading justpy +# NEEDS to be done BEFORE loading justpy but AFTER jpcore.justpy_config.JpConfig +# jpcore.justpy_config.JpConfig loads defaults into jpcore.jpconfig +# justpy creates app mounts +from jpcore.justpy_config import JpConfig import jpcore.jpconfig jpcore.jpconfig.STATIC_DIRECTORY = STATIC_DIR -# justpy/justpy.py -# import jpcore.jpconfig as jpconfig -# app = JustpyApp(middleware=middleware, debug=jpconfig.DEBUG) -# app.mount(jpconfig.STATIC_ROUTE, StaticFiles(directory=jpconfig.STATIC_DIRECTORY), name=jpconfig.STATIC_NAME) -# app.mount( -# "/templates", StaticFiles(directory=current_dir + "/templates"), name="templates" -# ) from justpy import ( app, diff --git a/justpy.env b/justpy.env deleted file mode 100644 index 4543732..0000000 --- a/justpy.env +++ /dev/null @@ -1,3 +0,0 @@ -STATIC_DIRECTORY = ./static -NO_INTERNET = True -VERBOSE = False \ No newline at end of file