Sfoglia il codice sorgente

app register blueprint

weichen 3 anni fa
parent
commit
74fdcb8a2a
1 ha cambiato i file con 5 aggiunte e 2 eliminazioni
  1. 5 2
      models/__init__.py

+ 5 - 2
models/__init__.py

@@ -11,9 +11,12 @@ def create_app():
 
     from models.contents.routes import contents_app
     from models.manages.routes import manages_app
-    
-    app.register_blueprint(contents_app)
+    from models.store_locations.routes import store_locations_app
+    from models.statics.routes import statics_app
 
+    app.register_blueprint(contents_app)
     app.register_blueprint(manages_app)
+    app.register_blueprint(store_locations_app)
+    app.register_blueprint(statics_app)
 
     return app