Opened 10 years ago

Closed 10 years ago

#22701 closed Bug (invalid)

'no such table: django_session' with python 3 in os x mavericks

Reported by: zero Owned by: nobody
Component: Uncategorized Version: dev
Severity: Normal Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

OS and Python versions:

OS X 10.9.3 installed python 3.4.1 from https://www.python.org/download/:
https://www.python.org/ftp/python/3.4.1/python-3.4.1-macosx10.6.dmg

Python 3.4.1 (v3.4.1:c0e311e010fc, May 18 2014, 00:54:21)
[GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin

Commands to reproduce error:

$ virtualenv --python=/usr/local/bin/python3 --no-site-packages my_venv
$ cd my_venv
$ source bin/activate
$ pip3 install https://www.djangoproject.com/download/1.7.b4/tarball/
$ django-admin.py startproject my_proj
$ cd my_proj/
$ ./manage.py runserver

OUTPUT:

Performing system checks...

System check identified no issues (0 silenced).
May 25, 2014 - 14:50:53
Django version 1.7b4, using settings 'my_proj.settings'
Starting development server at http://127.0.0.1:8000/
Quit the server with CONTROL-C.

Goto http://127.0.0.1:8000/ in browser, get this:

A server error occurred. Please contact the administrator.

SERVER ERROR OUTPUT:

Traceback (most recent call last):

File "/Users/alex/_workspace/friend/test/my_venv/lib/python3.4/site-packages/django/contrib/sessions/backends/base.py", line 170, in _get_session

return self._session_cache

AttributeError: 'SessionStore' object has no attribute '_session_cache'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):

File "/Users/alex/_workspace/friend/test/my_venv/lib/python3.4/site-packages/django/db/backends/utils.py", line 65, in execute

return self.cursor.execute(sql, params)

File "/Users/alex/_workspace/friend/test/my_venv/lib/python3.4/site-packages/django/db/backends/sqlite3/base.py", line 484, in execute

return Database.Cursor.execute(self, query, params)

sqlite3.OperationalError: no such table: django_session

The above exception was the direct cause of the following exception:

Traceback (most recent call last):

File "/Users/alex/_workspace/friend/test/my_venv/lib/python3.4/site-packages/django/core/handlers/base.py", line 87, in get_response

response = middleware_method(request)

File "/Users/alex/_workspace/friend/test/my_venv/lib/python3.4/site-packages/django/contrib/auth/middleware.py", line 34, in process_request

if user and hasattr(user, 'get_session_auth_hash'):

File "/Users/alex/_workspace/friend/test/my_venv/lib/python3.4/site-packages/django/utils/functional.py", line 224, in inner

self._setup()

File "/Users/alex/_workspace/friend/test/my_venv/lib/python3.4/site-packages/django/utils/functional.py", line 357, in _setup

self._wrapped = self._setupfunc()

File "/Users/alex/_workspace/friend/test/my_venv/lib/python3.4/site-packages/django/contrib/auth/middleware.py", line 23, in <lambda>

request.user = SimpleLazyObject(lambda: get_user(request))

File "/Users/alex/_workspace/friend/test/my_venv/lib/python3.4/site-packages/django/contrib/auth/middleware.py", line 11, in get_user

request._cached_user = auth.get_user(request)

File "/Users/alex/_workspace/friend/test/my_venv/lib/python3.4/site-packages/django/contrib/auth/init.py", line 151, in get_user

user_id = request.session[SESSION_KEY]

File "/Users/alex/_workspace/friend/test/my_venv/lib/python3.4/site-packages/django/contrib/sessions/backends/base.py", line 49, in getitem

return self._session[key]

File "/Users/alex/_workspace/friend/test/my_venv/lib/python3.4/site-packages/django/contrib/sessions/backends/base.py", line 175, in _get_session

self._session_cache = self.load()

File "/Users/alex/_workspace/friend/test/my_venv/lib/python3.4/site-packages/django/contrib/sessions/backends/db.py", line 21, in load

expire_dategt=timezone.now()

File "/Users/alex/_workspace/friend/test/my_venv/lib/python3.4/site-packages/django/db/models/manager.py", line 92, in manager_method

return getattr(self.get_queryset(), name)(*args, kwargs)

File "/Users/alex/_workspace/friend/test/my_venv/lib/python3.4/site-packages/django/db/models/query.py", line 349, in get

num = len(clone)

File "/Users/alex/_workspace/friend/test/my_venv/lib/python3.4/site-packages/django/db/models/query.py", line 122, in len

self._fetch_all()

File "/Users/alex/_workspace/friend/test/my_venv/lib/python3.4/site-packages/django/db/models/query.py", line 964, in _fetch_all

self._result_cache = list(self.iterator())

File "/Users/alex/_workspace/friend/test/my_venv/lib/python3.4/site-packages/django/db/models/query.py", line 265, in iterator

for row in compiler.results_iter():

File "/Users/alex/_workspace/friend/test/my_venv/lib/python3.4/site-packages/django/db/models/sql/compiler.py", line 699, in results_iter

for rows in self.execute_sql(MULTI):

File "/Users/alex/_workspace/friend/test/my_venv/lib/python3.4/site-packages/django/db/models/sql/compiler.py", line 785, in execute_sql

cursor.execute(sql, params)

File "/Users/alex/_workspace/friend/test/my_venv/lib/python3.4/site-packages/django/db/backends/utils.py", line 81, in execute

return super(CursorDebugWrapper, self).execute(sql, params)

File "/Users/alex/_workspace/friend/test/my_venv/lib/python3.4/site-packages/django/db/backends/utils.py", line 65, in execute

return self.cursor.execute(sql, params)

File "/Users/alex/_workspace/friend/test/my_venv/lib/python3.4/site-packages/django/db/utils.py", line 94, in exit

six.reraise(dj_exc_type, dj_exc_value, traceback)

File "/Users/alex/_workspace/friend/test/my_venv/lib/python3.4/site-packages/django/utils/six.py", line 549, in reraise

raise value.with_traceback(tb)

File "/Users/alex/_workspace/friend/test/my_venv/lib/python3.4/site-packages/django/db/backends/utils.py", line 65, in execute

return self.cursor.execute(sql, params)

File "/Users/alex/_workspace/friend/test/my_venv/lib/python3.4/site-packages/django/db/backends/sqlite3/base.py", line 484, in execute

return Database.Cursor.execute(self, query, params)

django.db.utils.OperationalError: no such table: django_session

During handling of the above exception, another exception occurred:

Traceback (most recent call last):

File "/Users/alex/_workspace/friend/test/my_venv/lib/python3.4/site-packages/django/contrib/sessions/backends/base.py", line 170, in _get_session

return self._session_cache

AttributeError: 'SessionStore' object has no attribute '_session_cache'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):

File "/Users/alex/_workspace/friend/test/my_venv/lib/python3.4/site-packages/django/db/backends/utils.py", line 65, in execute

return self.cursor.execute(sql, params)

File "/Users/alex/_workspace/friend/test/my_venv/lib/python3.4/site-packages/django/db/backends/sqlite3/base.py", line 484, in execute

return Database.Cursor.execute(self, query, params)

sqlite3.OperationalError: no such table: django_session

The above exception was the direct cause of the following exception:

Traceback (most recent call last):

File "/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/wsgiref/handlers.py", line 137, in run

self.result = application(self.environ, self.start_response)

File "/Users/alex/_workspace/friend/test/my_venv/lib/python3.4/site-packages/django/contrib/staticfiles/handlers.py", line 60, in call

return self.application(environ, start_response)

File "/Users/alex/_workspace/friend/test/my_venv/lib/python3.4/site-packages/django/core/handlers/wsgi.py", line 187, in call

response = self.get_response(request)

File "/Users/alex/_workspace/friend/test/my_venv/lib/python3.4/site-packages/django/core/handlers/base.py", line 199, in get_response

response = self.handle_uncaught_exception(request, resolver, sys.exc_info())

File "/Users/alex/_workspace/friend/test/my_venv/lib/python3.4/site-packages/django/core/handlers/base.py", line 234, in handle_uncaught_exception

return debug.technical_500_response(request, *exc_info)

File "/Users/alex/_workspace/friend/test/my_venv/lib/python3.4/site-packages/django/views/debug.py", line 77, in technical_500_response

html = reporter.get_traceback_html()

File "/Users/alex/_workspace/friend/test/my_venv/lib/python3.4/site-packages/django/views/debug.py", line 335, in get_traceback_html

c = Context(self.get_traceback_data(), use_l10n=False)

File "/Users/alex/_workspace/friend/test/my_venv/lib/python3.4/site-packages/django/views/debug.py", line 293, in get_traceback_data

frames = self.get_traceback_frames()

File "/Users/alex/_workspace/friend/test/my_venv/lib/python3.4/site-packages/django/views/debug.py", line 451, in get_traceback_frames

'vars': self.filter.get_traceback_frame_variables(self.request, tb.tb_frame),

File "/Users/alex/_workspace/friend/test/my_venv/lib/python3.4/site-packages/django/views/debug.py", line 218, in get_traceback_frame_variables

cleansed[name] = self.cleanse_special_types(request, value)

File "/Users/alex/_workspace/friend/test/my_venv/lib/python3.4/site-packages/django/views/debug.py", line 173, in cleanse_special_types

if isinstance(value, HttpRequest):

File "/Users/alex/_workspace/friend/test/my_venv/lib/python3.4/site-packages/django/utils/functional.py", line 224, in inner

self._setup()

File "/Users/alex/_workspace/friend/test/my_venv/lib/python3.4/site-packages/django/utils/functional.py", line 357, in _setup

self._wrapped = self._setupfunc()

File "/Users/alex/_workspace/friend/test/my_venv/lib/python3.4/site-packages/django/contrib/auth/middleware.py", line 23, in <lambda>

request.user = SimpleLazyObject(lambda: get_user(request))

File "/Users/alex/_workspace/friend/test/my_venv/lib/python3.4/site-packages/django/contrib/auth/middleware.py", line 11, in get_user

request._cached_user = auth.get_user(request)

File "/Users/alex/_workspace/friend/test/my_venv/lib/python3.4/site-packages/django/contrib/auth/init.py", line 151, in get_user

user_id = request.session[SESSION_KEY]

File "/Users/alex/_workspace/friend/test/my_venv/lib/python3.4/site-packages/django/contrib/sessions/backends/base.py", line 49, in getitem

return self._session[key]

File "/Users/alex/_workspace/friend/test/my_venv/lib/python3.4/site-packages/django/contrib/sessions/backends/base.py", line 175, in _get_session

self._session_cache = self.load()

File "/Users/alex/_workspace/friend/test/my_venv/lib/python3.4/site-packages/django/contrib/sessions/backends/db.py", line 21, in load

expire_dategt=timezone.now()

File "/Users/alex/_workspace/friend/test/my_venv/lib/python3.4/site-packages/django/db/models/manager.py", line 92, in manager_method

return getattr(self.get_queryset(), name)(*args, kwargs)

File "/Users/alex/_workspace/friend/test/my_venv/lib/python3.4/site-packages/django/db/models/query.py", line 349, in get

num = len(clone)

File "/Users/alex/_workspace/friend/test/my_venv/lib/python3.4/site-packages/django/db/models/query.py", line 122, in len

self._fetch_all()

File "/Users/alex/_workspace/friend/test/my_venv/lib/python3.4/site-packages/django/db/models/query.py", line 964, in _fetch_all

self._result_cache = list(self.iterator())

File "/Users/alex/_workspace/friend/test/my_venv/lib/python3.4/site-packages/django/db/models/query.py", line 265, in iterator

for row in compiler.results_iter():

File "/Users/alex/_workspace/friend/test/my_venv/lib/python3.4/site-packages/django/db/models/sql/compiler.py", line 699, in results_iter

for rows in self.execute_sql(MULTI):

File "/Users/alex/_workspace/friend/test/my_venv/lib/python3.4/site-packages/django/db/models/sql/compiler.py", line 785, in execute_sql

cursor.execute(sql, params)

File "/Users/alex/_workspace/friend/test/my_venv/lib/python3.4/site-packages/django/db/backends/utils.py", line 81, in execute

return super(CursorDebugWrapper, self).execute(sql, params)

File "/Users/alex/_workspace/friend/test/my_venv/lib/python3.4/site-packages/django/db/backends/utils.py", line 65, in execute

return self.cursor.execute(sql, params)

File "/Users/alex/_workspace/friend/test/my_venv/lib/python3.4/site-packages/django/db/utils.py", line 94, in exit

six.reraise(dj_exc_type, dj_exc_value, traceback)

File "/Users/alex/_workspace/friend/test/my_venv/lib/python3.4/site-packages/django/utils/six.py", line 549, in reraise

raise value.with_traceback(tb)

File "/Users/alex/_workspace/friend/test/my_venv/lib/python3.4/site-packages/django/db/backends/utils.py", line 65, in execute

return self.cursor.execute(sql, params)

File "/Users/alex/_workspace/friend/test/my_venv/lib/python3.4/site-packages/django/db/backends/sqlite3/base.py", line 484, in execute

return Database.Cursor.execute(self, query, params)

django.db.utils.OperationalError: no such table: django_session
[25/May/2014 14:52:17] "GET / HTTP/1.1" 500 59

Traceback (most recent call last):

File "/Users/alex/_workspace/friend/test/my_venv/lib/python3.4/site-packages/django/contrib/sessions/backends/base.py", line 170, in _get_session

return self._session_cache

AttributeError: 'SessionStore' object has no attribute '_session_cache'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):

File "/Users/alex/_workspace/friend/test/my_venv/lib/python3.4/site-packages/django/db/backends/utils.py", line 65, in execute

return self.cursor.execute(sql, params)

File "/Users/alex/_workspace/friend/test/my_venv/lib/python3.4/site-packages/django/db/backends/sqlite3/base.py", line 484, in execute

return Database.Cursor.execute(self, query, params)

sqlite3.OperationalError: no such table: django_session

The above exception was the direct cause of the following exception:

Traceback (most recent call last):

File "/Users/alex/_workspace/friend/test/my_venv/lib/python3.4/site-packages/django/core/handlers/base.py", line 87, in get_response

response = middleware_method(request)

File "/Users/alex/_workspace/friend/test/my_venv/lib/python3.4/site-packages/django/contrib/auth/middleware.py", line 34, in process_request

if user and hasattr(user, 'get_session_auth_hash'):

File "/Users/alex/_workspace/friend/test/my_venv/lib/python3.4/site-packages/django/utils/functional.py", line 224, in inner

self._setup()

File "/Users/alex/_workspace/friend/test/my_venv/lib/python3.4/site-packages/django/utils/functional.py", line 357, in _setup

self._wrapped = self._setupfunc()

File "/Users/alex/_workspace/friend/test/my_venv/lib/python3.4/site-packages/django/contrib/auth/middleware.py", line 23, in <lambda>

request.user = SimpleLazyObject(lambda: get_user(request))

File "/Users/alex/_workspace/friend/test/my_venv/lib/python3.4/site-packages/django/contrib/auth/middleware.py", line 11, in get_user

request._cached_user = auth.get_user(request)

File "/Users/alex/_workspace/friend/test/my_venv/lib/python3.4/site-packages/django/contrib/auth/init.py", line 151, in get_user

user_id = request.session[SESSION_KEY]

File "/Users/alex/_workspace/friend/test/my_venv/lib/python3.4/site-packages/django/contrib/sessions/backends/base.py", line 49, in getitem

return self._session[key]

File "/Users/alex/_workspace/friend/test/my_venv/lib/python3.4/site-packages/django/contrib/sessions/backends/base.py", line 175, in _get_session

self._session_cache = self.load()

File "/Users/alex/_workspace/friend/test/my_venv/lib/python3.4/site-packages/django/contrib/sessions/backends/db.py", line 21, in load

expire_dategt=timezone.now()

File "/Users/alex/_workspace/friend/test/my_venv/lib/python3.4/site-packages/django/db/models/manager.py", line 92, in manager_method

return getattr(self.get_queryset(), name)(*args, kwargs)

File "/Users/alex/_workspace/friend/test/my_venv/lib/python3.4/site-packages/django/db/models/query.py", line 349, in get

num = len(clone)

File "/Users/alex/_workspace/friend/test/my_venv/lib/python3.4/site-packages/django/db/models/query.py", line 122, in len

self._fetch_all()

File "/Users/alex/_workspace/friend/test/my_venv/lib/python3.4/site-packages/django/db/models/query.py", line 964, in _fetch_all

self._result_cache = list(self.iterator())

File "/Users/alex/_workspace/friend/test/my_venv/lib/python3.4/site-packages/django/db/models/query.py", line 265, in iterator

for row in compiler.results_iter():

File "/Users/alex/_workspace/friend/test/my_venv/lib/python3.4/site-packages/django/db/models/sql/compiler.py", line 699, in results_iter

for rows in self.execute_sql(MULTI):

File "/Users/alex/_workspace/friend/test/my_venv/lib/python3.4/site-packages/django/db/models/sql/compiler.py", line 785, in execute_sql

cursor.execute(sql, params)

File "/Users/alex/_workspace/friend/test/my_venv/lib/python3.4/site-packages/django/db/backends/utils.py", line 81, in execute

return super(CursorDebugWrapper, self).execute(sql, params)

File "/Users/alex/_workspace/friend/test/my_venv/lib/python3.4/site-packages/django/db/backends/utils.py", line 65, in execute

return self.cursor.execute(sql, params)

File "/Users/alex/_workspace/friend/test/my_venv/lib/python3.4/site-packages/django/db/utils.py", line 94, in exit

six.reraise(dj_exc_type, dj_exc_value, traceback)

File "/Users/alex/_workspace/friend/test/my_venv/lib/python3.4/site-packages/django/utils/six.py", line 549, in reraise

raise value.with_traceback(tb)

File "/Users/alex/_workspace/friend/test/my_venv/lib/python3.4/site-packages/django/db/backends/utils.py", line 65, in execute

return self.cursor.execute(sql, params)

File "/Users/alex/_workspace/friend/test/my_venv/lib/python3.4/site-packages/django/db/backends/sqlite3/base.py", line 484, in execute

return Database.Cursor.execute(self, query, params)

django.db.utils.OperationalError: no such table: django_session

During handling of the above exception, another exception occurred:

Traceback (most recent call last):

File "/Users/alex/_workspace/friend/test/my_venv/lib/python3.4/site-packages/django/contrib/sessions/backends/base.py", line 170, in _get_session

return self._session_cache

AttributeError: 'SessionStore' object has no attribute '_session_cache'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):

File "/Users/alex/_workspace/friend/test/my_venv/lib/python3.4/site-packages/django/db/backends/utils.py", line 65, in execute

return self.cursor.execute(sql, params)

File "/Users/alex/_workspace/friend/test/my_venv/lib/python3.4/site-packages/django/db/backends/sqlite3/base.py", line 484, in execute

return Database.Cursor.execute(self, query, params)

sqlite3.OperationalError: no such table: django_session

The above exception was the direct cause of the following exception:

Traceback (most recent call last):

File "/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/wsgiref/handlers.py", line 137, in run

self.result = application(self.environ, self.start_response)

File "/Users/alex/_workspace/friend/test/my_venv/lib/python3.4/site-packages/django/contrib/staticfiles/handlers.py", line 60, in call

return self.application(environ, start_response)

File "/Users/alex/_workspace/friend/test/my_venv/lib/python3.4/site-packages/django/core/handlers/wsgi.py", line 187, in call

response = self.get_response(request)

File "/Users/alex/_workspace/friend/test/my_venv/lib/python3.4/site-packages/django/core/handlers/base.py", line 199, in get_response

response = self.handle_uncaught_exception(request, resolver, sys.exc_info())

File "/Users/alex/_workspace/friend/test/my_venv/lib/python3.4/site-packages/django/core/handlers/base.py", line 234, in handle_uncaught_exception

return debug.technical_500_response(request, *exc_info)

File "/Users/alex/_workspace/friend/test/my_venv/lib/python3.4/site-packages/django/views/debug.py", line 77, in technical_500_response

html = reporter.get_traceback_html()

File "/Users/alex/_workspace/friend/test/my_venv/lib/python3.4/site-packages/django/views/debug.py", line 335, in get_traceback_html

c = Context(self.get_traceback_data(), use_l10n=False)

File "/Users/alex/_workspace/friend/test/my_venv/lib/python3.4/site-packages/django/views/debug.py", line 293, in get_traceback_data

frames = self.get_traceback_frames()

File "/Users/alex/_workspace/friend/test/my_venv/lib/python3.4/site-packages/django/views/debug.py", line 451, in get_traceback_frames

'vars': self.filter.get_traceback_frame_variables(self.request, tb.tb_frame),

File "/Users/alex/_workspace/friend/test/my_venv/lib/python3.4/site-packages/django/views/debug.py", line 218, in get_traceback_frame_variables

cleansed[name] = self.cleanse_special_types(request, value)

File "/Users/alex/_workspace/friend/test/my_venv/lib/python3.4/site-packages/django/views/debug.py", line 173, in cleanse_special_types

if isinstance(value, HttpRequest):

File "/Users/alex/_workspace/friend/test/my_venv/lib/python3.4/site-packages/django/utils/functional.py", line 224, in inner

self._setup()

File "/Users/alex/_workspace/friend/test/my_venv/lib/python3.4/site-packages/django/utils/functional.py", line 357, in _setup

self._wrapped = self._setupfunc()

File "/Users/alex/_workspace/friend/test/my_venv/lib/python3.4/site-packages/django/contrib/auth/middleware.py", line 23, in <lambda>

request.user = SimpleLazyObject(lambda: get_user(request))

File "/Users/alex/_workspace/friend/test/my_venv/lib/python3.4/site-packages/django/contrib/auth/middleware.py", line 11, in get_user

request._cached_user = auth.get_user(request)

File "/Users/alex/_workspace/friend/test/my_venv/lib/python3.4/site-packages/django/contrib/auth/init.py", line 151, in get_user

user_id = request.session[SESSION_KEY]

File "/Users/alex/_workspace/friend/test/my_venv/lib/python3.4/site-packages/django/contrib/sessions/backends/base.py", line 49, in getitem

return self._session[key]

File "/Users/alex/_workspace/friend/test/my_venv/lib/python3.4/site-packages/django/contrib/sessions/backends/base.py", line 175, in _get_session

self._session_cache = self.load()

File "/Users/alex/_workspace/friend/test/my_venv/lib/python3.4/site-packages/django/contrib/sessions/backends/db.py", line 21, in load

expire_dategt=timezone.now()

File "/Users/alex/_workspace/friend/test/my_venv/lib/python3.4/site-packages/django/db/models/manager.py", line 92, in manager_method

return getattr(self.get_queryset(), name)(*args, kwargs)

File "/Users/alex/_workspace/friend/test/my_venv/lib/python3.4/site-packages/django/db/models/query.py", line 349, in get

num = len(clone)

File "/Users/alex/_workspace/friend/test/my_venv/lib/python3.4/site-packages/django/db/models/query.py", line 122, in len

self._fetch_all()

File "/Users/alex/_workspace/friend/test/my_venv/lib/python3.4/site-packages/django/db/models/query.py", line 964, in _fetch_all

self._result_cache = list(self.iterator())

File "/Users/alex/_workspace/friend/test/my_venv/lib/python3.4/site-packages/django/db/models/query.py", line 265, in iterator

for row in compiler.results_iter():

File "/Users/alex/_workspace/friend/test/my_venv/lib/python3.4/site-packages/django/db/models/sql/compiler.py", line 699, in results_iter

for rows in self.execute_sql(MULTI):

File "/Users/alex/_workspace/friend/test/my_venv/lib/python3.4/site-packages/django/db/models/sql/compiler.py", line 785, in execute_sql

cursor.execute(sql, params)

File "/Users/alex/_workspace/friend/test/my_venv/lib/python3.4/site-packages/django/db/backends/utils.py", line 81, in execute

return super(CursorDebugWrapper, self).execute(sql, params)

File "/Users/alex/_workspace/friend/test/my_venv/lib/python3.4/site-packages/django/db/backends/utils.py", line 65, in execute

return self.cursor.execute(sql, params)

File "/Users/alex/_workspace/friend/test/my_venv/lib/python3.4/site-packages/django/db/utils.py", line 94, in exit

six.reraise(dj_exc_type, dj_exc_value, traceback)

File "/Users/alex/_workspace/friend/test/my_venv/lib/python3.4/site-packages/django/utils/six.py", line 549, in reraise

raise value.with_traceback(tb)

File "/Users/alex/_workspace/friend/test/my_venv/lib/python3.4/site-packages/django/db/backends/utils.py", line 65, in execute

return self.cursor.execute(sql, params)

File "/Users/alex/_workspace/friend/test/my_venv/lib/python3.4/site-packages/django/db/backends/sqlite3/base.py", line 484, in execute

return Database.Cursor.execute(self, query, params)

django.db.utils.OperationalError: no such table: django_session
[25/May/2014 14:52:17] "GET / HTTP/1.1" 500 59

Change History (1)

comment:1 by Sasha Romijn, 10 years ago

Resolution: invalid
Status: newclosed

In the commands, you are missing ./manage.py migrate. This is new in 1.7 - but previously you'd have to run ./manage.py syncdb.

Note: See TracTickets for help on using tickets.
Back to Top