diff --git a/royalnet/web/blueprints/helloworld.py b/royalnet/web/blueprints/helloworld/__init__.py similarity index 84% rename from royalnet/web/blueprints/helloworld.py rename to royalnet/web/blueprints/helloworld/__init__.py index cd8e77aa..ada6eed5 100644 --- a/royalnet/web/blueprints/helloworld.py +++ b/royalnet/web/blueprints/helloworld/__init__.py @@ -1,5 +1,5 @@ import flask as f -from .. import Royalprint +from ... import Royalprint bp = Royalprint("helloworld", __name__, url_prefix="/helloworld") @@ -8,4 +8,3 @@ bp = Royalprint("helloworld", __name__, url_prefix="/helloworld") @bp.route("/") def helloworld(): return "Hello world!" - diff --git a/royalnet/web/blueprints/testing.py b/royalnet/web/blueprints/testing/__init__.py similarity index 84% rename from royalnet/web/blueprints/testing.py rename to royalnet/web/blueprints/testing/__init__.py index 989b95af..abd645e2 100644 --- a/royalnet/web/blueprints/testing.py +++ b/royalnet/web/blueprints/testing/__init__.py @@ -1,6 +1,6 @@ import flask as f -from .. import Royalprint -from ...database.tables import Royal +from ... import Royalprint +from ....database.tables import Royal bp = Royalprint("testing", __name__, url_prefix="/testing", required_tables={Royal})