takahe/users/apps.py

15 lines
397 B
Python
Raw Normal View History

2022-11-05 13:17:27 -07:00
from django.apps import AppConfig
from django.conf import settings
2022-11-05 13:17:27 -07:00
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()