Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mancheng
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
mancheng
Commits
c8e38a7e
Commit
c8e38a7e
authored
Jan 07, 2022
by
赵宇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
5c5ddeab
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
95 additions
and
96 deletions
+95
-96
apps/__init__.py
+2
-2
apps/attract/view.py
+91
-92
apps/utils/neo4j_conn.py
+2
-2
No files found.
apps/__init__.py
View file @
c8e38a7e
...
@@ -91,7 +91,7 @@ def creat_app(config_name):
...
@@ -91,7 +91,7 @@ def creat_app(config_name):
# from apps.user_pc import api_user
# from apps.user_pc import api_user
from
apps.atlas
import
api_atlas
from
apps.atlas
import
api_atlas
from
apps.radar
import
api_radar
from
apps.radar
import
api_radar
#
from apps.attract import api_att
from
apps.attract
import
api_att
# from apps.view_360 import api_portraits
# from apps.view_360 import api_portraits
# from apps.view_choose_address import api_address
# from apps.view_choose_address import api_address
# from apps.manage import api_power
# from apps.manage import api_power
...
@@ -101,7 +101,7 @@ def creat_app(config_name):
...
@@ -101,7 +101,7 @@ def creat_app(config_name):
# app.register_blueprint(api_user, url_prefix='/api/user')
# app.register_blueprint(api_user, url_prefix='/api/user')
app
.
register_blueprint
(
api_radar
,
url_prefix
=
'/api/radar'
)
app
.
register_blueprint
(
api_radar
,
url_prefix
=
'/api/radar'
)
app
.
register_blueprint
(
api_atlas
,
url_prefix
=
'/api/atlas'
)
app
.
register_blueprint
(
api_atlas
,
url_prefix
=
'/api/atlas'
)
#
app.register_blueprint(api_att, url_prefix='/api/att')
app
.
register_blueprint
(
api_att
,
url_prefix
=
'/api/att'
)
#
#
app
.
register_blueprint
(
api_attract
,
url_prefix
=
'/api/attract/industry'
)
app
.
register_blueprint
(
api_attract
,
url_prefix
=
'/api/attract/industry'
)
# app.register_blueprint(api_portraits, url_prefix="/api/portraits/industry")
# app.register_blueprint(api_portraits, url_prefix="/api/portraits/industry")
...
...
apps/attract/view.py
View file @
c8e38a7e
This diff is collapsed.
Click to expand it.
apps/utils/neo4j_conn.py
View file @
c8e38a7e
...
@@ -2,8 +2,8 @@ from py2neo import Graph
...
@@ -2,8 +2,8 @@ from py2neo import Graph
def
conn_neo4j
():
def
conn_neo4j
():
graph
=
Graph
(
"http://localhost:7474"
,
username
=
"neo4j"
,
password
=
"123456"
)
# 本地neo4j
#
graph = Graph("http://localhost:7474", username="neo4j", password="123456") # 本地neo4j
#
graph = Graph("http://localhost:7476", username="neo4j", password="123456") # 上传到50服务器前需更改
graph
=
Graph
(
"http://localhost:7476"
,
username
=
"neo4j"
,
password
=
"123456"
)
# 上传到50服务器前需更改
# graph = Graph("http://39.100.39.50:7476/", username="neo4j", password="123456") # 测试50服务器上的neo4j时使用
# graph = Graph("http://39.100.39.50:7476/", username="neo4j", password="123456") # 测试50服务器上的neo4j时使用
return
graph
return
graph
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment