初始安装依赖包
python -m pip install --upgrade pip
pip install -i https://mirrors.aliyun.com/pypi/simple/ Django==3.2.23
pip install -i https://mirrors.aliyun.com/pypi/simple/ django-appconf==1.0.6
pip install -i https://mirrors.aliyun.com/pypi/simple/ django-ckeditor==6.3.2
pip install -i https://mirrors.aliyun.com/pypi/simple/ django-compressor==4.4
pip install -i https://mirrors.aliyun.com/pypi/simple/ django-js-asset==2.0.0
pip install -i https://mirrors.aliyun.com/pypi/simple/ django-ranged-response==0.2.0
pip install -i https://mirrors.aliyun.com/pypi/simple/ django-simple-captcha==0.5.20
pip install -i https://mirrors.aliyun.com/pypi/simple/ django_debug_toolbar==3.8.1
pip install -i https://mirrors.aliyun.com/pypi/simple/ numpy==1.21.6
pip install -i https://mirrors.aliyun.com/pypi/simple/ Pillow==9.5.0
pip install -i https://mirrors.aliyun.com/pypi/simple/ wfastcgi==3.0.0
pip install -i https://mirrors.aliyun.com/pypi/simple/ xlwt
pip install -i https://mirrors.aliyun.com/pypi/simple/ xlrd
pip install -i https://mirrors.aliyun.com/pypi/simple/ requests
pip3 install https://mirrors.aliyun.com/pypi/simple/ urllib3==1.26.15
或
pip install -i https://pypi.tuna.tsinghua.edu.cn/simple --trusted-host pypi.tuna.tsinghua.edu.cn urllib3==1.26.15 django-ckeditor==6.3.2 django-compressor==4.4 django-js-asset==2.0.0 django-ranged-response==0.2.0 django-simple-captcha==0.5.20 django_debug_toolbar==3.8.1 numpy==1.21.6 Pillow==9.5.0 wfastcgi==3.0.0 xlwt xlrd requests urllib3==1.26.15 djangorestframework
汇总
pip install -i https://mirrors.aliyun.com/pypi/simple/ Django==3.2.23 django-appconf==1.0.6
本地文件安装
pip install mysqlclient-2.0.0-cp37-cp37m-win_amd64.whl
阿里云SDK
pip install -i https://mirrors.aliyun.com/pypi/simple/ alibabacloud_dysmsapi20170525==3.1.0
pip install -i https://mirrors.aliyun.com/pypi/simple/ alibabacloud_tea_console
配置环境
处理程序映射--》添加模块映射--》可执行文件--》获取地址可通过下面的命令
wfastcgi-enable
WSGI_HANDLER
django.core.wsgi.get_wsgi_application()
PYTHONPATH
DJANGO_SETTINGS_MODULE
%windir%\system32\inetsrv\appcmd unlock config -section:system.webServer/handlers
%windir%\system32\inetsrv\appcmd unlock config -section:system.webServer/modules