This repository has been archived on 2023-09-24. You can view files and clone it, but cannot push or open issues or pull requests.
takahe/users/apps.py
2022-11-20 23:08:09 -07:00

15 lines
397 B
Python

from django.apps import AppConfig
from django.conf import settings
class UsersConfig(AppConfig):
default_auto_field = "django.db.models.BigAutoField"
name = "users"
def ready(self) -> None:
if not settings.IN_TESTS:
# Generate the server actor keypair if needed
from users.models import SystemActor
SystemActor.generate_keys_if_needed()