Created
March 17, 2013 00:22
-
-
Save jaredlewis/5178965 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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