django报错Failed lookup for key [name] in 'None'的解决办法
2016-01-17 00:56
525 查看
自己更新了django中的一个mongodb的一张表结构,添加了一个新的字段,后来访问网页上这个表的数据出错:
Failed lookup for key [name] in 'None'
解决办法:
1查看/var/log/apache2/error.log 的apache的错误日志,发现提示:
The field 'heatMapsFigName' does not existon the document 'production'
说明果然是更新了表结构应该重启apache,执行步骤2
2 执行命令:a2dissite search.conf ,search.conf是我自己的站点访问文件
然后执行 service apache2 reload
再重新启动站点.执行
a2ensite search.conf
执行:
service apache2 reload
就可以了
Failed lookup for key [name] in 'None'
解决办法:
1查看/var/log/apache2/error.log 的apache的错误日志,发现提示:
The field 'heatMapsFigName' does not existon the document 'production'
说明果然是更新了表结构应该重启apache,执行步骤2
2 执行命令:a2dissite search.conf ,search.conf是我自己的站点访问文件
然后执行 service apache2 reload
再重新启动站点.执行
a2ensite search.conf
执行:
service apache2 reload
就可以了
相关文章推荐
- jetbrains idea 15 "破解"
- pair用法(给元素赋值)
- Leetcode 328 Contains Duplicate set和map应用
- 3.3 启发式搜索
- Codeforces Gym 100015B Ball Painting 找规律
- 怎样将baidu地图中的baidu logo 去掉
- hdu1082 Matrix Chain Multiplication
- debian Jessie版安装中文输入法
- 3.6 产生式系统
- Codeforces educational round 5. E Sum of Remainders 数论 分块
- HDU 1789 Doing Homework again
- 服务器TIME_WAIT和CLOSE_WAIT详解和解决办法
- hdu2057 A + B Again
- [ILINK32 Error] Error: Unresolved external 'WSAIoctl'
- POJ 2027 No Brainer
- NSBundle 的理解和 mainBundle 类方法的详解
- set集合中的contains操作
- G面经prepare: X-Straight
- System.Net.Mail发送邮件
- Failed to execute goal on project ecz-wx: Could not resolve dependencies for project