Commits

Anonymous committed 8a98159

initial import

  • Participants

Comments (0)

Files changed (16)

File .runserver.py.swp

Binary file added.

File flask_bsp/__init__.py

+from flask import Flask
+from flask_bsp.apps.app1.views import app1
+from flask_bsp.apps.app2.views import app2
+
+app = Flask(__name__)
+app.register_module(app1, url_prefix="/app1")
+app.register_module(app2, url_prefix="/app2")

File flask_bsp/__init__.pyc

Binary file added.

File flask_bsp/apps/__init__.py

Empty file added.

File flask_bsp/apps/__init__.pyc

Binary file added.

File flask_bsp/apps/app1/.views.py.swp

Binary file added.

File flask_bsp/apps/app1/__init__.py

Empty file added.

File flask_bsp/apps/app1/__init__.pyc

Binary file added.

File flask_bsp/apps/app1/views.py

+from flask import Module
+
+app1 = Module(__name__)
+
+@app1.route('/')
+def index():
+    return "app1 index"
+
+

File flask_bsp/apps/app1/views.pyc

Binary file added.

File flask_bsp/apps/app2/.views.py.swp

Binary file added.

File flask_bsp/apps/app2/__init__.py

Empty file added.

File flask_bsp/apps/app2/__init__.pyc

Binary file added.

File flask_bsp/apps/app2/views.py

+from flask import Module
+
+app2 = Module(__name__)
+
+@app2.route('/')
+def index():
+    return "app2 index"
+
+

File flask_bsp/apps/app2/views.pyc

Binary file added.

File runserver.py

+from flask_bsp import app
+
+if __name__ == '__main__':
+    app.run(debug=True)