Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Session backend is broken in django 1.4 #469

Closed
ghost opened this issue Mar 24, 2012 · 3 comments
Closed

Session backend is broken in django 1.4 #469

ghost opened this issue Mar 24, 2012 · 3 comments

Comments

@ghost
Copy link

ghost commented Mar 24, 2012

The stable release 1.4 from django broke the session backend from mongodb.

mongoengine/django/auth.py:
class SessionStore(SessionBase):
def create(self):
while True:
self.session_key = self._get_new_session_key()
....

This will throw an attribute error when accessed. Following change is needed to make it work again:
self._session_key = self._get_new_session_key()

@ghost
Copy link
Author

ghost commented Mar 24, 2012

Duplicate, sorry about that.

@ghost ghost closed this as completed Mar 24, 2012
@jachinpy
Copy link

I have the same problem. And just from the merger of remote update down over the code, I cleaned up the browser's cookie, or can's set attribute. in the source code to test shows, the fundamental can't arrive home.

@jachinpy
Copy link

I have a answer. I have a python virtualenv. beacause the virtualenv project is wrong. if don't python's verison no problem, so you can mkvirtualenv new project. eg: $mkvirtualenv dev #then pip install packages $ rmvirtualenv olderbranch # delete older project env. try it.

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant