mirror of
https://github.com/meeb/tubesync.git
synced 2025-06-26 15:06:36 +00:00
Make directories before creating SQLite database
This commit is contained in:
parent
bd06c5b888
commit
0b63d70fd7
@ -58,6 +58,11 @@ DJANGO_HUEY = {
|
||||
'network': sqlite_tasks('network'),
|
||||
},
|
||||
}
|
||||
for django_huey_queue in DJANGO_HUEY['queues'].items():
|
||||
connection = django_huey_queue.get('connection')
|
||||
if connection:
|
||||
filepath = Path('/.' + connection.get('filename') or '').resolve(strict=False)
|
||||
filepath.parent.mkdir(exist_ok=True, parents=True)
|
||||
|
||||
|
||||
TEMPLATES = [
|
||||
|
Loading…
Reference in New Issue
Block a user