首页 > 代码库 > django error

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

本文出自 “Art_Hero” 博客,请务必保留此出处http://curran.blog.51cto.com/2788306/1600334

django error