We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 439a2c9 commit 845c841Copy full SHA for 845c841
create_flask_service/template/app.py
@@ -6,6 +6,9 @@
6
from flask_sqlalchemy import SQLAlchemy
7
from werkzeug.middleware.proxy_fix import ProxyFix
8
9
+# Set working directory to project root
10
+os.chdir(os.path.abspath(os.path.dirname(__file__)))
11
+
12
# If available, load environment variables from .env before rest of the package
13
if os.path.isfile(".env"):
14
from dotenv import load_dotenv
@@ -14,6 +17,7 @@
17
15
18
from controller import api
16
19
20
21
########################################################################################################################
22
# Setup / Configuration
23
0 commit comments