python - Run Django on multiple ports -


could tell me how can run django on 2 ports simultaneously? default django configuration listens on port 8000. i'd run instance on port xxxx well. i'd redirect requests second port particular app in django application.

i need accomplish default django installation , not using webserver nginx, apache, etc.

thank you


let's 2 applications in django application. don't mean 2 separate django applications separate folders inside 'app' directory. let's call app1 , app2

i want requests on port 8000 go app1 , requests on port xxxx go app2

hth.

just run 2 instances of ./manage.py runserver. can set port specifying directly: ./manage.py runserver 8002 listen on port 8002.

edit don't understand why want this. if want 2 servers serving different parts of site, have in effect 2 sites, need 2 separate settings.py , urls.py files. you'd run 1 instance of runserver each, passing settings flag appropriately: ./manage.py runserver 8002 --settings=app1.settings


Comments

Popular posts from this blog

ASP.NET/SQL find the element ID and update database -

jquery - appear modal windows bottom -

c++ - Compiling static TagLib 1.6.3 libraries for Windows -