Y
Y
Yura Khlyan2016-11-24 15:05:27
Django
Yura Khlyan, 2016-11-24 15:05:27

Two sites on the same database in Django?

Good day.
I have a project in which some applications need to be moved to a separate site, but on the same database. How can I implement this? In what direction to dig?
I will be very grateful for your help.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
sim3x, 2016-11-24
@sim3x

Route everything to one project
In apps, figure out which host the user came from

P
Pavel Aksenov, 2016-11-24
@hellmin

Create files manage2.py settings2.py urls2.py. In manage2.py add settings2, and in settings2.py add urls2.
The first site will run ./manage.py runserver
The second will run ./manage2.py runserver

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question