We have a a legacy django app (django 1.4.2) which is being run to publish some reports. It uses celery and sqlite3. Because of multiple concurrent connections, sqlite database is getting locked.
The applications was written almost four years back, and is working very well except for occasional database locking which is becoming a pain. Upgrading to a newer version of Django assuming that setting CONN_MAX_AGE (introduced in django 1.6) will work fine is being overruled because the application is fairly large and may have some dependency issues.
Note this is not web front ending application has less than 30 internal users. So security is not a big concern.
Question is how do we ensure that database is not getting locked. Is there a way to implement CONN_MAX_AGE for an older version of django.