DjangoBB

Django based forum engine

  • You are not logged in.

Poll

TransactionManagementError

  •  
    0 votes (0.0%) for: ???

#1 Feb. 26, 2015 23:10:39

azorg
Registered: 2011-01-11
Posts: 22
Reputation: +  0  -
Profile   Send e-mail  

TransactionManagementError

I have exception after new installation:
TransactionManagementError at /forum/user/admin/
This is forbidden when an ‘atomic’ block is active.
Request Method: GET
Request URL: http://127.0.0.1:8000/forum/user/admin/
Django Version: 1.6.10
Exception Type: TransactionManagementError
Exception Value: This is forbidden when an ‘atomic’ block is active.

My local_settings.py have:

DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3', # Add 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3'
'NAME': 'db.sqlt3', # path to database file if using sqlite3
'ATOMIC_REQUESTS': True, #!!! FIXME
}
}
Have you any idea?
Thank you.

Edited azorg (Feb. 26, 2015 23:19:33)

Offline

#2 Feb. 27, 2015 08:56:27

azorg
Registered: 2011-01-11
Posts: 22
Reputation: +  0  -
Profile   Send e-mail  

TransactionManagementError

I have find solutions:

1) remove all @transaction.commit_on_success decorators in djangobb_forum/view.py (remove ‘from django.db import transaction’ too)

OR

2) revert to Django==1.5.5

Offline

Board footer

Moderator control

Powered by DjangoBB

Lo-Fi Version