我无法运行应用程序,因为Django无法创建表" app.django_session"。使用python 3.4,Django Framework和MySQL。
我试过syncdb
命令。我删除了旧数据库并创建了一个新数据库,之后它就无法工作。
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")