create files

This commit is contained in:
pengtao 2019-12-16 20:33:47 +08:00
commit 7b7afb5eeb
5 changed files with 17 additions and 0 deletions

1
config.py Normal file
View File

@ -0,0 +1 @@
# -*- coding: utf-8 -*-

10
myapp/__init__.py Normal file
View File

@ -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

1
myapp/admin/__init__.py Normal file
View File

@ -0,0 +1 @@
# -*- coding: utf-8 -*-

1
myapp/views.py Normal file
View File

@ -0,0 +1 @@
# -*- coding: utf-8 -*-

4
run.py Normal file
View File

@ -0,0 +1,4 @@
# -*- coding: utf-8 -*-
from myapp import app
app.run(host="0.0.0.0", debug=True)