首先安装需要用到的包

pip install django-extensions
pip install django-werkzeug-debugger-runserver
pip install pyOpenSSL

添加到INSTALLED_APPS

INSTALLED_APPS = [
    ...
    'werkzeug_debugger_runserver',  # 开启https需要的服务
    'django_extensions',  # 开启https需要的服务
    ...   
]

启动https服务

python manage.py runserver_plus --cert server.crt 0.0.0.0:8000

 

相关文章:

  • 2021-12-18
  • 2022-02-10
  • 2021-08-20
  • 2022-12-23
  • 2021-06-24
  • 2022-12-23
  • 2022-01-10
  • 2021-11-13
猜你喜欢
  • 2022-03-03
  • 2022-12-23
  • 2021-11-11
  • 2022-12-23
  • 2022-12-23
  • 2021-11-28
  • 2022-01-07
相关资源
相似解决方案