Skip to content

mabulibeh/dbmgmt

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

49 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Getting started

Since we're going to be workshopping database ideas, we need a good way to reset the database and easily mock up some new data.

Workflow

  • Delete current sqlite database by either calling python manage.py flush or simply deleting the db file.
  • Modify the hospital/management/commands/create_db.py command to create new instances/relations.
  • Call custom management command via python manage.py create_db. This will make the migrations and populate the db.
  • Use python manage.py shell_plus to enter interactive shell to verify.

Generating the ERD

This assumes Ubuntu May need alternate steps for windows/mac

  1. Setup env/packages and pip install requirements

  2. Install graphviz library sudo apt-get install graphviz

  3. Create png of the ERD python manage.py graph_models hospital --output=erd.png

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • Python 49.6%
  • HTML 27.6%
  • CSS 18.9%
  • JavaScript 3.9%