D
D
Dmitry2015-09-23 10:15:36
MySQL
Dmitry, 2015-09-23 10:15:36

Is it possible to use one database for two django projects?

Have some idea. Maybe I'm not on the right path to solve it, correct me if that!
Since there is only one URL of the project.ru/ type in one project, it occurred to me to split the application into several django projects (by connecting several VirtulHost to Apache for each domain, for example 1site.project.ru/, 2site.project.ru. ..).
However, after a little thought, I asked myself: since each project will have different apps, then the names of the tables in the database will be different and I won’t be able to use 1 table in different projects!?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
R
Roman Kitaev, 2015-09-23
@deliro

The table name can be changed in the metaclass

S
sim3x, 2015-09-23
@sim3x

use one database for two or more sites from
https://docs.djangoproject.com/en/1.8/ref/contrib/...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question