takahe/users/apps.py
2022-11-20 23:08:09 -07:00

14 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()