Re: Why not working exampe from Django docs

2016-05-18 Thread Tim Graham
It might be that the meta class should be removed (or at least, app_label should refer to the actual label of your app): class Meta: app_label = 'mysessions' Does it work if you do that? Do you have the app in INSTALLED_APPS? On Wednesday, May 18, 2016 at 8:39:48 AM UTC-4, Seti Volkylany w

Why not working exampe from Django docs

2016-05-18 Thread Seti Volkylany
https://docs.djangoproject.com/en/1.9/topics/http/sessions/#example from django.contrib.sessions.backends.db import SessionStore as DBStorefrom django.contrib.sessions.base_session import AbstractBaseSessionfrom django.db import models class CustomSession(AbstractBaseSession): account_id = m