commit 7b7afb5eebb258d74de560f41a4f05dbd7ae191e Author: pengtao Date: Mon Dec 16 20:33:47 2019 +0800 create files diff --git a/config.py b/config.py new file mode 100644 index 0000000..7c68785 --- /dev/null +++ b/config.py @@ -0,0 +1 @@ +# -*- coding: utf-8 -*- \ No newline at end of file diff --git a/myapp/__init__.py b/myapp/__init__.py new file mode 100644 index 0000000..9189b19 --- /dev/null +++ b/myapp/__init__.py @@ -0,0 +1,10 @@ +# -*- coding: utf-8 -*- +from flask import Flask +from myapp import admin +import config + +app = Flask(__name__) +app.config.from_object(config) +app.register_blueprint(admin) + +from myapp import views diff --git a/myapp/admin/__init__.py b/myapp/admin/__init__.py new file mode 100644 index 0000000..7c68785 --- /dev/null +++ b/myapp/admin/__init__.py @@ -0,0 +1 @@ +# -*- coding: utf-8 -*- \ No newline at end of file diff --git a/myapp/views.py b/myapp/views.py new file mode 100644 index 0000000..7c68785 --- /dev/null +++ b/myapp/views.py @@ -0,0 +1 @@ +# -*- coding: utf-8 -*- \ No newline at end of file diff --git a/run.py b/run.py new file mode 100644 index 0000000..2440637 --- /dev/null +++ b/run.py @@ -0,0 +1,4 @@ +# -*- coding: utf-8 -*- +from myapp import app + +app.run(host="0.0.0.0", debug=True)