天天看點

django error

錯誤資訊:You're using the Django "sites framework" without having set the SITE_ID setting. Create a site in your database and set the SITE_ID setting to fix this error.

  原因:settings.py裡# Application definition中添加了'django.contrib.sites'子產品後需要設定SITE_ID 

  處理:在settings.py裡添加配置:SITE_ID = 1

Database returned an invalid value in QuerySet.datetimes(). Are time zone definitions for your database and pytz installed?

上一篇: netca error
下一篇: ant error