文档服务地址:http://47.92.0.57:3000/ 周报索引地址:http://47.92.0.57:3000/s/NruNXRYmV

Commit d9a7aa67 by convivae

修改数据库为服务器数据库

parent e281b292
# 配置文件
import os
......@@ -6,12 +7,14 @@ class DevelopmentConfig(object):
# Flask app config
DEBUG = False
TESTING = False
SECRET_KEY = "sample_key"
SECRET_KEY = 'sample_key'
# Root path of project
PROJECT_PATH = os.path.abspath(os.path.join(os.path.dirname(__file__), '..'))
# MongoEngine config
MONGODB_SETTINGS = {
"db": "test",
'host': 'localhost',
'port': 27017
'db': 'da',
'host': '47.92.1.107',
'port': 8081,
'username': 'admin',
'password': 'admin'
}
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
<!DOCTYPE html><html><head><meta charset=utf-8><meta name=viewport content="width=device-width,initial-scale=1"><title>daplatform</title><link href=./static/css/app.6cdb465616a51cabd0ac672475a0e1b5.css rel=stylesheet></head><body><div id=app></div><script type=text/javascript src=./static/js/manifest.a2be0e83c4d960b10398.js></script><script type=text/javascript src=./static/js/vendor.2fc81d8d0fcb35cebf32.js></script><script type=text/javascript src=./static/js/app.a24413619bcc6bb50711.js></script></body></html>
\ No newline at end of file
<!DOCTYPE html><html><head><meta charset=utf-8><meta name=viewport content="width=device-width,initial-scale=1"><title>daplatform</title><link href=./static/css/app.5cc2fd331676831effb2fb4d7fc68917.css rel=stylesheet></head><body><div id=app></div><script type=text/javascript src=./static/js/manifest.a2be0e83c4d960b10398.js></script><script type=text/javascript src=./static/js/vendor.2fc81d8d0fcb35cebf32.js></script><script type=text/javascript src=./static/js/app.233bd3dfafe45262e3a4.js></script></body></html>
\ No newline at end of file
......@@ -36,7 +36,7 @@ def save_image():
# 获取图层
@image.route("/layer", methods=["GET"])
@image.route("/getLayer", methods=["GET"])
def get_layer():
data = json.loads(request.data)
relation_list = data['relationList']
......@@ -50,7 +50,7 @@ def get_layer():
# 保存图层标注结果
@image.route("/layer", methods=["POST"])
@image.route("/saveLayer", methods=["POST"])
def save_layer():
data = json.loads(request.data)
layer_list = data['layerList']
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment