Cannot run python-django application because django cannot create session table

469 views Asked by At

I cannot run application because Django cannot create table "app.django_session". Using python 3.4, Django Framework and MySQL. I tried syncdb command. I dropped old database and created a new one, after that it doesn't work.

Traceback (most recent call last):
  File "/usr/local/lib/python3.4/dist-packages/django/contrib/sessions/backends/base.py", line 176, in _get_session
    return self._session_cache
AttributeError: 'SessionStore' object has no attribute '_session_cache'

...

  File "/usr/local/lib/python3.4/dist-packages/MySQLdb/connections.py", line 280, in query
    _mysql.connection.query(self, query)
django.db.utils.ProgrammingError: (1146, "Table 'app.django_session' doesn't exist")
0

There are 0 answers