Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
P
physical
Project
Project
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
吴升宇
physical
Commits
047d2f47
Commit
047d2f47
authored
Jan 22, 2019
by
lixiaofang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update DBRouter
parent
c8b3d10c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
3 deletions
+2
-3
DBRouter.py
physical/DBRouter.py
+1
-1
settings.py
physical/settings.py
+1
-2
No files found.
physical/DBRouter.py
View file @
047d2f47
...
...
@@ -2,7 +2,7 @@
# -*- coding: utf-8 -*-
class
D
emo
Router
:
class
D
B
Router
:
"""
A router to control all database operations on models in the
user application.
...
...
physical/settings.py
View file @
047d2f47
...
...
@@ -123,8 +123,7 @@ REDIS_URL = "redis://127.0.0.1:6379"
# Database
# https://docs.djangoproject.com/en/1.10/ref/settings/#databases
DATABASE_ROUTERS
=
[
'./DBRouter'
]
DATABASE_APPS_MAPPING
=
{
'face'
:
'face'
}
DATABASE_ROUTERS
=
[
'physical.DBRouter.DBRouter'
]
DATABASES
=
{
'default'
:
{
...
...
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