自定義UserProfile,執行遷移命令時,出現了以下錯誤
1 ERRORS: 2 send_email.UserProfile.image: (fields.E210) Cannot use ImageField because Pillow is not installed. 3 HINT: Get Pillow at https://pypi.org/project/Pillow/ or run command "pip install Pillow".
解決方案
pip install pillow
安裝完成后,請在終端中再次執行遷移命令,不要在pycharm的終端中執行,因為我發現還是會出現上述錯誤,直接在終端中執行什么問題都沒有。