Django 访问地址出现页面访问失败
部署Django样例访问提示:
错误信息: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