mirror of
https://github.com/retspen/webvirtcloud
synced 2026-11-08 19:26:48 +00:00
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.
11 lines
284 B
Python
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")
|