Clean up theme compiler and thumbnail generation

Fix signup not clearning blanks - Thanks to Fennec
This commit is contained in:
Michał Gdula 2023-04-01 16:59:17 +00:00
parent 0e24004c0b
commit 95e5f3938f
7 changed files with 55 additions and 73 deletions

View file

@ -60,7 +60,7 @@ def create_app(test_config=None):
app.config.from_mapping(test_config)
# Load theme
theme_manager.CompileTheme('default', app.root_path)
theme_manager.compile_theme('default', app.root_path)
# Bundle JS files
js_scripts = Bundle('js/*.js', output='gen/packed.js')
@ -82,7 +82,7 @@ def create_app(test_config=None):
app.register_blueprint(auth.blueprint)
# Load the different routes
from .routes import api, groups, routing, settings
from gallery.routes import api, groups, routing, settings
app.register_blueprint(api.blueprint)
app.register_blueprint(groups.blueprint)
app.register_blueprint(routing.blueprint)