Commit 90f6a167 authored by shadMod's avatar shadMod 💬

fixed from imports

parent 4e500606
......@@ -25,14 +25,15 @@ from . import actions
from . import auth
from . import cache
from . import db
from . import download
from . import navbar
from . import pages
from . import redirects
from . import utils
from .src.news import news
from .constants import BASE_DIR
from .src.download.views import Downloads
from .src.news.views import News
def create_app(data_path, debug=False):
"""Create a new instance of the application"""
......@@ -61,8 +62,8 @@ def create_app(data_path, debug=False):
utils.prepare_app(app)
app.news = news.News()
app.download = download.Downloads(data_path)
app.news = News()
app.download = Downloads(data_path)
app.register_blueprint(redirects.prepare_blueprint(app))
app.register_blueprint(app.news.prepare_blueprint(app), url_prefix="/news")
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment