13 lines
396 B
Python
13 lines
396 B
Python
from django.apps import AppConfig
|
|
|
|
|
|
class LocalModelConfig(AppConfig):
|
|
default_auto_field = 'django.db.models.BigAutoField'
|
|
name = 'local_model'
|
|
|
|
def ready(self):
|
|
import os
|
|
if os.environ.get('SERVER_NAME') == 'local_model' and os.environ.get('MAXKB_RUNTIME_AUTOSTART', '1') == '1':
|
|
from local_model.runtime import start_runtime
|
|
start_runtime()
|