首页 > 其他 > 详细

django error

时间:2015-01-07 19:03:48      阅读:307      评论:0      收藏:0      [点我收藏+]

错误信息: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

原文:http://curran.blog.51cto.com/2788306/1600334

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!