Django用户登录中出现403问题的解决
2012-05-29 10:15
591 查看
在注销登录完以后,要把RequestContext传出去,这样才会有效果,不然会引发403
即使页面加了tag。
有问题的登出
正确的代码
或者用django1.3新增的render
原文网址:/article/4117597.html
即使页面加了tag。
有问题的登出
def logout(request): user_logout(request) return render_to_response('index.html')
正确的代码
return render_to_response('index.html',context_instanse=RequestContext(request))
或者用django1.3新增的render
return render(request,'index.html')
原文网址:/article/4117597.html
相关文章推荐
- 解决vsftpd用户登录出现500 OOPS: cannot change directory问题
- 利用Django中间件middleware解决用户未登录问题(转)
- 解决免安装版Mysql出现任何用户不用密码都能登录的问题
- Django开发中form表单post提交出现403问题解决
- 解决在root里添加用户后登录后出现密码错误的问题
- 解决登录linux服务器出现Resource temporarily unavailable问题——增加用户线程数
- ubuntu下添加新用户、解决远程登录问题
- 匿名用户访问用发布站点模板创建网站的列表项时要求登录的问题解决
- 解决 django1.2环境中使用自带的admin管理界面,配置后访问出现“你无权限修改任何东西” 的问题
- 关于“解决实现注册用户后,自动具备访问网站的权限的问题”文章中配置出现找不到角色的问题的解决办法
- 用户 'NT AUTHORITY\NETWORK SERVICE' 登录失败问题解决方案
- 关于RHEL 6不能用Root用户登录问题的解决
- 关于在django框架里取已登录用户名字的问题
- Ubuntu开启root用户及其它登录问题的解决
- 关于配置tomcat后出现401 403问题的解决方法
- oracle新建用户导入scott的表,解决新用户查询scott表时出现表或视图不存在的问题
- ubuntu14.04不能用root用户登录问题解决
- 解决ubuntu强制关机后root登录用户消失,只能访客登录问题
- SQL Server数据库时出现孤立用户权限问题的解决办