記錄用Django搭建博客的問題之一:SITE_ID=1

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 errorthis

 

fixed:Adding "SITE_ID = 1" to your settings will get you past the exception 
without having to add it to INSTALLED_APPS. I had to do this one of my 
projects.spa

相關文章
相關標籤/搜索