martinrusev / django-redis-sessions

Session backend for Django that stores sessions in a Redis database
BSD 3-Clause "New" or "Revised" License
495 stars 106 forks source link

Raises and AttributeError on django 1.4c2 #9

Closed nmb10 closed 12 years ago

nmb10 commented 12 years ago

session_key is readonly since https://code.djangoproject.com/changeset/17155 changeset. Changing self.session_key = self._get_new_session_key()

To self._session_key = self._get_new_session_key() in create() method fixed error for me.

jeffbaier commented 12 years ago

+1

I am upgrading one of our projects to the release version of Django 1.4. Spent about an hour tracking this bug down. Confirmed that this patch works for me too.