django-background-task icon indicating copy to clipboard operation
django-background-task copied to clipboard

unable to open database file

Open DaDaDim opened this issue 5 years ago • 1 comments

Hi, I was using background taks in production mode and everything was going fine. Now I just deployed my django app on a server with Apache2 and sqlite3 and Django 2.2.1, but when I try to access the app via the browser I get "unable to open database file" which happens at the moment I call my task in urls.py. By commenting the line the app works just fine, though. Of course, no background task is run anymore then.

Any idea?

DaDaDim avatar May 22 '19 15:05 DaDaDim

So I solved it by giving writing rights to the whole project folder rather than just the database... Still if anyone has an explanation on why allowing writes to just the database is not enough, I'd gladly hear it.

DaDaDim avatar May 23 '19 08:05 DaDaDim