Code Monkey home page Code Monkey logo

Comments (16)

zaxlct avatar zaxlct commented on May 29, 2024

能贴一下退出部分的代码吗?还是说是克隆了我的代码出现的问题?

from imooc-django.

VanRitzOwen avatar VanRitzOwen commented on May 29, 2024

回复及时,点个赞!克隆的你的代码,点退出登录之后,logout(request)不起作用。

from imooc-django.

zaxlct avatar zaxlct commented on May 29, 2024

mater 分支?
代码报错了吗?

from imooc-django.

VanRitzOwen avatar VanRitzOwen commented on May 29, 2024

嗯嗯,是的

from imooc-django.

VanRitzOwen avatar VanRitzOwen commented on May 29, 2024

我手动在chrome开发人员工具里删除了sessionid,刷新页面就成未登录状态了,清除session的代码也没有管用。。

from imooc-django.

zaxlct avatar zaxlct commented on May 29, 2024

登录的用户是不是超级用户?
新注册一个用户,登录一下,再点击登出是否也出现这种情况?

from imooc-django.

VanRitzOwen avatar VanRitzOwen commented on May 29, 2024

所有用户都是无法退出,sessionid后台是一直存在的,目前没找到办法清空sessionid

from imooc-django.

zaxlct avatar zaxlct commented on May 29, 2024

手动清空 sessionid 不是个好办法,我克隆代码调试下。之前的代码不小心删了, = =哈哈

from imooc-django.

zaxlct avatar zaxlct commented on May 29, 2024

@VanRitzOwen 我刚刚这么执行了一下,没发现问题

# 建立虚拟环境
git clone https://github.com/zaxlct/MxOnline_Django
make dev
# 建立一个名为 imooc 数据库
make migrate
make run
# 注册账号
# 登录账号
# 点击登出,刷新页面,已登出

from imooc-django.

VanRitzOwen avatar VanRitzOwen commented on May 29, 2024

啊?为什么你的环境可以正常退出啊。。

from imooc-django.

zaxlct avatar zaxlct commented on May 29, 2024

@VanRitzOwen 再另外克隆下项目,重新启动试试?

from imooc-django.

VanRitzOwen avatar VanRitzOwen commented on May 29, 2024

大神,Master分支为什么需要开代理才能加载jQuery?不开代理console显示加载Timeout。

from imooc-django.

zaxlct avatar zaxlct commented on May 29, 2024

@VanRitzOwen 什么意思?什么代理?

from imooc-django.

Lefttyre avatar Lefttyre commented on May 29, 2024

我也遇到了这个问题,我加断点后发现LogoutView.get 其实没有被调到。费解,master分支

from imooc-django.

zaxlct avatar zaxlct commented on May 29, 2024

@Lefttyre 为毛我本地测试没问题 2333....

from imooc-django.

Lefttyre avatar Lefttyre commented on May 29, 2024

@zaxlct, 哈哈,我也很是费解,再次测试了一下chrome 和Firefox 都有这个问题,断点断不到,但是360没有问题。本人菜鸟,也debug不出其中的缘由了,前面两个浏览器手动删除缓存内容后,又可以执行到logout一次。

from imooc-django.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.