I am writng multiple apps inside the same django project Now I want to run each app individually my project name is : myproject and i have 2 apps inside it : app1, app2 Now i want to run app1 in different port(7000) and app2 in different port(7002) simultaneously. Is there any way to acheive it??
Asked
Active
Viewed 349 times
0
-
[Check this question](https://stackoverflow.com/questions/23325371/django-serving-each-app-separately-in-each-its-port) Its the same issue – Prashanth S. Feb 01 '19 at 07:38
-
Possible duplicate of [Django serving each app separately in each its port](https://stackoverflow.com/questions/23325371/django-serving-each-app-separately-in-each-its-port) – mehamasum Feb 01 '19 at 07:58
1 Answers
0
Create different seetings.py, for each application, for example settings1 and settings2. In settings1 add app1 in INSTALLED_APPS
and in seetings2 add app2.
Then you can run two instances of Django, but with different settings module

Headmaster
- 2,008
- 4
- 24
- 51