Skip to content

Commit 1e2458d

Browse files
committed
added debug mode
1 parent 1ecf76d commit 1e2458d

File tree

5 files changed

+4
-3
lines changed

5 files changed

+4
-3
lines changed

README.md

+1-2
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,7 @@
1717
```bash
1818
git clone ...
1919
cd project-name
20-
project-name-> export FLASK_APP = route.py
21-
project-name-> flask run
20+
project-name-> python route.py
2221
```
2322

2423
## Contributions

__pycache__/route.cpython-38.pyc

-14 Bytes
Binary file not shown.

app/__init__.py

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
from logging import debug
12
from flask import Flask
23
from app.models import db
34
from app.cms import cms_bp
@@ -8,6 +9,7 @@
89

910
def create_app():
1011
app = Flask(__name__)
12+
app.debug = True
1113
app.config.from_pyfile('config.py')
1214
db.init_app(app)
1315

50 Bytes
Binary file not shown.

route.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@
33

44
if __name__ == '__main__':
55
app = create_app()
6-
app.run(debug=True)
6+
app.run()

0 commit comments

Comments
 (0)