當增加一個表中的字段時,可能需要重啓一下server服務,後臺纔會有所變動。
ImproperlyConfigured: The included urlconf jiae.urls doesn't have any patterns in it錯誤出現原因在於:view中使用了reverse,應該使用reverse_lazy。
python中PIL庫在使用時出現The _imagingft C module is not installed錯誤,需要安裝libfreetype6-dev
需要先刪除pillow再進行安裝
sudo pip uninstall -y pillow
刪除PIL相關文件夾:/usr/local/bin/pil , usr/lib/python2.7/dist-packages/PIL , /usr/share/pyshared/PIL
sudo apt-get install libfreetype6-dev
sudo pip install pillow.