Comments (16)
能贴一下退出部分的代码吗?还是说是克隆了我的代码出现的问题?
from imooc-django.
回复及时,点个赞!克隆的你的代码,点退出登录之后,logout(request)不起作用。
from imooc-django.
mater 分支?
代码报错了吗?
from imooc-django.
嗯嗯,是的
from imooc-django.
我手动在chrome开发人员工具里删除了sessionid,刷新页面就成未登录状态了,清除session的代码也没有管用。。
from imooc-django.
登录的用户是不是超级用户?
新注册一个用户,登录一下,再点击登出是否也出现这种情况?
from imooc-django.
所有用户都是无法退出,sessionid后台是一直存在的,目前没找到办法清空sessionid
from imooc-django.
手动清空 sessionid 不是个好办法,我克隆代码调试下。之前的代码不小心删了, = =哈哈
from imooc-django.
@VanRitzOwen 我刚刚这么执行了一下,没发现问题
# 建立虚拟环境
git clone https://github.com/zaxlct/MxOnline_Django
make dev
# 建立一个名为 imooc 数据库
make migrate
make run
# 注册账号
# 登录账号
# 点击登出,刷新页面,已登出
from imooc-django.
啊?为什么你的环境可以正常退出啊。。
from imooc-django.
@VanRitzOwen 再另外克隆下项目,重新启动试试?
from imooc-django.
大神,Master分支为什么需要开代理才能加载jQuery?不开代理console显示加载Timeout。
from imooc-django.
@VanRitzOwen 什么意思?什么代理?
from imooc-django.
我也遇到了这个问题,我加断点后发现LogoutView.get 其实没有被调到。费解,master分支
from imooc-django.
@Lefttyre 为毛我本地测试没问题 2333....
from imooc-django.
@zaxlct, 哈哈,我也很是费解,再次测试了一下chrome 和Firefox 都有这个问题,断点断不到,但是360没有问题。本人菜鸟,也debug不出其中的缘由了,前面两个浏览器手动删除缓存内容后,又可以执行到logout一次。
from imooc-django.
Related Issues (20)
- xadmin点击第二级菜单Django Crash. HOT 2
- 问下关于list_filter的问题 HOT 4
- 关于用户和用户组 HOT 5
- qq HOT 1
- 可乐的代码 HOT 1
- 小白龙
- 雷子的代码
- 阿古瓜的代码 HOT 1
- 我大PHP是世界上最好的语言
- 'NoneType' object has no attribute 'has_header' HOT 5
- docker-compose up -d 失败 HOT 2
- django.db.utils.InternalError: (1067, "Invalid default value for 'tag'") HOT 5
- ... HOT 1
- Demo Link Will Only Return 500 Page HOT 2
- recipe for target 'migrate' failed
- Cent OS docker 部署成功,怎么在浏览器查看项目?
- 求助HTML原始代码? HOT 1
- docker-compose up -d 出现告警,后边docker-compose exec 出错 HOT 3
- 首页排版乱了
- 执行make migrate时候报错!!!! HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from imooc-django.