1. 安装https支持包
pip3 install django-extensions
pip3 install django-werkzeug-debugger-runserver
pip3 install pyOpenSSL
2. 在settings中添加
INSTALLED_APPS = [
...
'werkzeug_debugger_runserver',
'django_extensions',
]
3. django启动时
python3 manage.py runserver_plus --cert /your/ssl/server.crt 0.0.0.0:8000
标签:development,accessing,pip3,server,runserver,报错,install,django
From: https://www.cnblogs.com/aiyablog/p/16709055.html