views:

86

answers:

2

I'm using django orm and templates to create a background service that is ran as management command.

Do you know if django is thread safe?

I'd like to use threads to speed up processing. The processing is blocked by I/O not CPU so I don't care about performance hit caused by GIL.

+1  A: 

According to this SO thread, it is as of 1.03.

Tom
The link in this thread is no longer valid. According to django: "This page and several others were created by a wiki user who was not and is not a member of the Django core team. Previous contents of this and other similar pages are not and should not be confused with Django's own documentation, which remains the sole source of official documentation for the Django project."
Piotr Czapla
A: 

If you need run jobs in background, you should use celery

diegueus9