Http POST drops port in URL

后端 未结 5 1956
遥遥无期
遥遥无期 2021-02-02 11:53

I have a webapp built with Django. I\'m currently running it off a laptop at home behind a router.

I have the router configured to route all traffic sent to a specific

5条回答
  •  北海茫月
    2021-02-02 12:12

    If you find that this occurs with a url derived from the get_absolute_url() method of a model, you should use pass that path to HttpRequest.build_absolute_url() in order to prepend the hostname and port to the path.

提交回复
热议问题