Django project looking for “attribute '_session_cache'”

前端 未结 4 791
暗喜
暗喜 2020-12-20 14:58

So I have a Django project that doesn\'t use a database (the \'DATABASES\' setting is commented out). I chose to use Django as there\'s a chance I will need the database fun

4条回答
  •  一整个雨季
    2020-12-20 15:40

    I'm not sure why I started to get this error, it involved an upgrade though. I just deleted all the sessions and after logging back in all was well.

    # from the shell but equivalent sql would work fine too
    from django.contrib.sessions.models import Session
    Session.objects.all().delete()
    

提交回复
热议问题