1
0
Fork 0
mirror of https://github.com/retspen/webvirtcloud synced 2026-11-08 19:26:48 +00:00
webvirtcloud/operations/apps.py
catborise 2440c9eaf7 refactor(settings): SQLite's WAL mode is an init_command
The operations app set PRAGMA journal_mode=WAL from a connection_created
receiver because Django's SQLite OPTIONS had no init command; Django 5.1
added init_command, so the template sets it there and the receiver goes.
The mode is stored in the database file, so existing databases keep it.
2026-11-06 11:01:51 +03:00

11 lines
284 B
Python

from django.apps import AppConfig
class OperationsConfig(AppConfig):
name = "operations"
def ready(self):
# every installed app's jobs.py registers its kinds
from django.utils.module_loading import autodiscover_modules
autodiscover_modules("jobs")