aboutsummaryrefslogtreecommitdiffstats
path: root/database/db.py
diff options
context:
space:
mode:
authorJesús <heckyel@hyperbola.info>2022-03-22 00:39:40 +0800
committerJesús <heckyel@hyperbola.info>2022-03-22 00:39:40 +0800
commit3fca03988b42adaf8e67cc7137dd1fdba327e197 (patch)
treead39a5bc12a03c82b9a4fd980c1b92ca0a1dac93 /database/db.py
downloadheroeapi-3fca03988b42adaf8e67cc7137dd1fdba327e197.tar.lz
heroeapi-3fca03988b42adaf8e67cc7137dd1fdba327e197.tar.xz
heroeapi-3fca03988b42adaf8e67cc7137dd1fdba327e197.zip
initial commit
Diffstat (limited to 'database/db.py')
-rw-r--r--database/db.py12
1 files changed, 12 insertions, 0 deletions
diff --git a/database/db.py b/database/db.py
new file mode 100644
index 0000000..ec8c146
--- /dev/null
+++ b/database/db.py
@@ -0,0 +1,12 @@
+"""
+Database
+"""
+# from flask_pymongo import PyMongo
+# mongo = PyMongo()
+
+from flask_mongoengine import MongoEngine
+db = MongoEngine()
+
+
+def initialize_db(app):
+ db.init_app(app)