Run Django on multiple ports

后端 未结 3 969
一生所求
一生所求 2021-02-10 15:50

Could someone tell me how I can run Django on two ports simultaneously? The default Django configuration only listens on port 8000. I\'d like to run another instance on port xxx

3条回答
  •  感动是毒
    2021-02-10 16:46

    The built-in web-server is intended for development only, so you should really be using apache or similar in an situation where you need to run on multiple ports.

    On the other hand you should be able to start up multiple servers just by starting multiple instances of runserver. As long as you are using a separate database server I don't think that will have any extra problems.

提交回复
热议问题