You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
File "/home/django/djbookru/src/news/management/commands/import_news.py", line 44,
in parse with transaction.commit_on_success():
AttributeError: 'module' object has no attribute 'commit_on_success'
The text was updated successfully, but these errors were encountered:
Дело в том, что функция
commit_on_success
устарела ещё в 1.6 и теперь надо использоватьatomic
.Подробности в документации: http://djbook.ru/rel1.6/topics/db/transactions.html#changes-from-django-1-5-and-earlier
Ошибка:
The text was updated successfully, but these errors were encountered: