django配置https

1.

pip install django-extensions

pip install django-werkzeug-debugger-runserver

pip install pyOpenSSL

2.

settings.py  

INSTALLED_APPS=[

  ...

  'werkzeug_debugger_runserver',

  'django_extensions',

]

3.

python manage.py runserver_plus --cert server.crt 127.0.0.1:7000

原文地址:https://www.cnblogs.com/tangpg/p/9762317.html