./manage.py runserver with https

后端 未结 2 1091
余生分开走
余生分开走 2021-01-25 19:01

./manage.py runserver 0.0.0.0:8000

I am using the line above as part of the code I borrowed from github (https://github.com/ribeiroit/boh-puppe

2条回答
  •  清歌不尽
    2021-01-25 19:35

    For this purpose I use the the third-party app django-extensions, which offers some nice additional functionalities.

    One of those extras is RunServerPlus.

    You can then start the server like this:

    python manage.py runserver_plus --cert-file /path/to/your/certificate
    

    and open https://localhost:8000 in your browser.

提交回复
热议问题