mirror of
https://github.com/jointakahe/takahe.git
synced 2024-11-22 15:21:01 +00:00
14 lines
397 B
Python
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()
|