initialization
This commit is contained in:
parent
76f87ef1c7
commit
44d8561ed0
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -1,3 +1,4 @@
|
|||
.idea
|
||||
# ---> Python
|
||||
# Byte-compiled / optimized / DLL files
|
||||
__pycache__/
|
||||
|
|
8
app/__init__.py
Normal file
8
app/__init__.py
Normal file
|
@ -0,0 +1,8 @@
|
|||
from flask import Flask, render_template
|
||||
from flask_bootstrap import Bootstrap
|
||||
from flask_moment import Moment
|
||||
|
||||
|
||||
def create_app(config_name):
|
||||
app = Flask(__name__)
|
||||
return app
|
3
app/main/__init__.py
Normal file
3
app/main/__init__.py
Normal file
|
@ -0,0 +1,3 @@
|
|||
from flask import Blueprint
|
||||
|
||||
main = Blueprint('main', __name__)
|
13
manage.py
Normal file
13
manage.py
Normal file
|
@ -0,0 +1,13 @@
|
|||
import os
|
||||
|
||||
from app import create_app
|
||||
|
||||
from flask_script import Manager,Shell
|
||||
|
||||
|
||||
app=create_app(os.getenv('FLASK_CONFIG') or 'default')
|
||||
|
||||
manager=Manager(app)
|
||||
|
||||
if __name__ == '__main__':
|
||||
manager.run()
|
0
tests/__init__.py
Normal file
0
tests/__init__.py
Normal file
Loading…
Reference in New Issue
Block a user