Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Проблема с импортом новостей #269

Open
RaD opened this issue May 6, 2015 · 1 comment
Open

Проблема с импортом новостей #269

RaD opened this issue May 6, 2015 · 1 comment
Assignees
Labels
Milestone

Comments

@RaD
Copy link
Member

RaD commented May 6, 2015

Дело в том, что функция commit_on_success устарела ещё в 1.6 и теперь надо использовать atomic.

Подробности в документации: http://djbook.ru/rel1.6/topics/db/transactions.html#changes-from-django-1-5-and-earlier

Ошибка:

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'
@RaD RaD added the major label May 6, 2015
@RaD RaD added this to the 2015-summer milestone May 6, 2015
@RaD RaD self-assigned this May 6, 2015
@RaD
Copy link
Member Author

RaD commented May 6, 2015

Надо дождаться следующих новостей и закрыть. Вручную всё работает нормально.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant