Django报错-AttributeError:'WSGIRequest'object has no attribute'session
时间:2019-08-20 17:58:06 来源:igfitidea点击:
在处理Django时,我收到了一条错误消息 **“AttributeError:'WSGIRequest'object has no attribute'session'”
解决方法
编辑settings.py文件
添加ALLOWED_HOSTS,其中FQDN是服务器的FQDN或者IP,比如 django.itroad.com.com
vi /path-of-project/project-name/project-name/settings.py ALLOWED_HOSTS=['FQDN']