Make directories before creating SQLite database

This commit is contained in:
tcely 2025-05-30 01:29:52 -04:00 committed by GitHub
parent bd06c5b888
commit 0b63d70fd7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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 = [