Skip to content

cash2one/multiple

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

multiple

Django multiple database switching tests

Setup

First, you need to clone this repo:

git clone http://github.com/MikeVelazcoMtz/multiple.git

And then, install the requirements:

pip install -r requirements.txt

After that, you need to run the makemigrations and migrate for each database alias:

# this is for the project (not for the database)
python manage.py makemigrations
.
.
.
.
.
.
python manage.py migrate --database default
.
.
.
.
.
.
python manage.py migrate --database eureka
.
.
.
.
.
.

And finally, run your server:

python manage.py runserver

About

Django multiple database switching tests

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 54.1%
  • CSS 30.2%
  • Python 8.5%
  • HTML 7.2%