[Solved]-Django – two projects using same database?

6πŸ‘

βœ…

It can quite easily be done. Just a matter of the same database details in the settings file.

It could reasonably be used for..

  • A django site applying functionality on a legacy databsae app.
  • A sattelite microsite, using a different domain and url scheme

The only disadvantages may be in keeping track of administration/user functionality but thats not a big one

πŸ‘€michael

2πŸ‘

I do believe that every app in Django’s DB has its tables prepended by appname_. Is that what you mean?

πŸ‘€user201788

2πŸ‘

Very common. Techniques like this are common for avoiding redundant data, which is usually a bad thing. Otherwise someone (or some ugly program) ends up trying to keep them in sync.

πŸ‘€dkretz

Leave a comment