天天看點

django2.2 學習

一 使用mysql問題,pymsql 有問題, 使用mysqlclient
https://blog.csdn.net/qq_37040516/article/details/89339805
$ python manage.py migrate

如果pip裝不上, 就去安裝對應版本的whl
1先确定python的版本   我的是 3.6   32位      使用指令python檢視
2pip install wheel   安裝whell
3https://www.lfd.uci.edu/~gohlke/pythonlibs/#mysql-python   下載下傳對應的whl,      報錯:***.whl is not a supported wheel on this platform.檔案和python不比對(檔案名中cm後面的數字和python版本應該比對)
4pip install 包名.whl