Use correct naming scheme for views

This commit is contained in:
Michał Gdula 2023-04-03 01:17:11 +00:00
parent fe82109272
commit d33585afca
6 changed files with 3 additions and 2 deletions

View file

@ -21,6 +21,7 @@ from yaml import safe_load
USER_DIR = platformdirs.user_config_dir('onlylegs')
Bundle.cache = False
def create_app(test_config=None):
@ -59,7 +60,7 @@ def create_app(test_config=None):
# Load JS assets
js_pre = Bundle('js/pre/*.js', output='gen/pre_packed.js')
js_post = Bundle('js/post/*.js', output='gen/post_packed.js')
styles = Bundle('sass/style.sass', filters='libsass', output='gen/styles.css')
styles = Bundle('sass/*.sass', filters='libsass', output='gen/styles.css')
assets.register('js_pre', js_pre)
assets.register('js_post', js_post)
assets.register('styles', styles)
@ -78,7 +79,7 @@ def create_app(test_config=None):
app.register_blueprint(auth.blueprint)
# Load the different routes
from gallery.routes import api, groups, routing, settings
from gallery.views import api, groups, routing, settings
app.register_blueprint(api.blueprint)
app.register_blueprint(groups.blueprint)
app.register_blueprint(routing.blueprint)