Answer the question
In order to leave comments, you need to log in
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
Route everything to one project
In apps, figure out which host the user came from
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 questionAsk a Question
731 491 924 answers to any question