mirror of
https://github.com/donlon/cloudflare-error-page.git
synced 2025-12-24 01:09:18 +00:00
rearrange Python files
This commit is contained in:
@@ -57,7 +57,7 @@ def create_app(test_config=None) -> Flask:
|
||||
from . import models
|
||||
from . import examples
|
||||
from . import editor
|
||||
from . import shared
|
||||
from . import share
|
||||
|
||||
if app.config["SQLALCHEMY_DATABASE_URI"].startswith('sqlite'):
|
||||
app.config["SQLALCHEMY_ENGINE_OPTIONS"] = {
|
||||
@@ -83,7 +83,7 @@ def create_app(test_config=None) -> Flask:
|
||||
|
||||
app.register_blueprint(editor.bp, url_prefix=f'{url_prefix}/editor')
|
||||
app.register_blueprint(examples.bp, url_prefix=f'{url_prefix}/examples')
|
||||
app.register_blueprint(shared.bp, url_prefix=f'{url_prefix}/s')
|
||||
app.register_blueprint(share.bp, url_prefix=f'{url_prefix}/s')
|
||||
|
||||
return app
|
||||
|
||||
|
||||
Reference in New Issue
Block a user