Skip to content

Instantly share code, notes, and snippets.

@jaredlewis
Created March 17, 2013 00:22
Show Gist options
  • Save jaredlewis/5178965 to your computer and use it in GitHub Desktop.
Save jaredlewis/5178965 to your computer and use it in GitHub Desktop.
Traceback (most recent call last):
File "/Users/jaredlewis/projects/python/akimbo/my-news-api/env/lib/python2.7/site-packages/django/core/handlers/base.py", line 111, in get_response
response = callback(request, *callback_args, **callback_kwargs)
File "/Users/jaredlewis/projects/python/akimbo/my-news-api/env/lib/python2.7/site-packages/sleepy/base.py", line 131, in __call__
response = getattr(self, request.method)(request, *args, **kwargs)
File "/Users/jaredlewis/projects/python/akimbo/my-news-api/env/lib/python2.7/site-packages/sleepy/decorators.py", line 65, in _requires_url_attribute_check
return fn(self, request, *args, **kwargs)
File "/Users/jaredlewis/projects/python/akimbo/my-news-api/env/lib/python2.7/site-packages/sleepy/decorators.py", line 137, in _transform
return fn(self, request, *args, **kwargs)
File "/Users/jaredlewis/projects/python/akimbo/my-news-api/env/lib/python2.7/site-packages/sleepy/decorators.py", line 137, in _transform
return fn(self, request, *args, **kwargs)
File "/Users/jaredlewis/projects/python/akimbo/my-news-api/mynews/users/auth/decorators.py", line 35, in _requires_authentication_check
return fn(self, request, *args, **kwargs)
File "/Users/jaredlewis/projects/python/akimbo/my-news-api/mynews/users/views.py", line 243, in POST
source_uris
File "/Users/jaredlewis/projects/python/akimbo/my-news-api/mynews/users/models.py", line 32, in update_or_create
playlist, created = qs.get_or_create(user=user, name=name, active=True)
File "/Users/jaredlewis/projects/python/akimbo/my-news-api/env/lib/python2.7/site-packages/django/db/models/query.py", line 448, in get_or_create
sid = transaction.savepoint(using=self.db)
File "/Users/jaredlewis/projects/python/akimbo/my-news-api/env/lib/python2.7/site-packages/django/db/transaction.py", line 158, in savepoint
return connection.savepoint()
File "/Users/jaredlewis/projects/python/akimbo/my-news-api/env/lib/python2.7/site-packages/django/db/backends/__init__.py", line 246, in savepoint
self._savepoint(sid)
File "/Users/jaredlewis/projects/python/akimbo/my-news-api/env/lib/python2.7/site-packages/django/db/backends/__init__.py", line 74, in _savepoint
self.cursor().execute(self.ops.savepoint_create_sql(sid))
File "/Users/jaredlewis/projects/python/akimbo/my-news-api/env/lib/python2.7/site-packages/django/db/backends/postgresql_psycopg2/base.py", line 52, in execute
return self.cursor.execute(query, args)
DatabaseError: SAVEPOINT can only be used in transaction blocks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment