Skip to content
This repository was archived by the owner on Jun 13, 2025. It is now read-only.

Commit 63bc452

Browse files
committed
remove the startup command from app
1 parent 7ca85f3 commit 63bc452

File tree

1 file changed

+0
-19
lines changed

1 file changed

+0
-19
lines changed

core/apps.py

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import logging
22

33
from django.apps import AppConfig
4-
from django.core.management import call_command
54
from shared.helpers.cache import RedisBackend
65

76
from services.redis_configuration import get_redis_connection
@@ -17,24 +16,6 @@ class CoreConfig(AppConfig):
1716
def ready(self):
1817
import core.signals # noqa: F401
1918

20-
if RUN_ENV == "DEV":
21-
try:
22-
# Call your management command here
23-
call_command(
24-
"insert_data_to_db_from_csv",
25-
"core/management/commands/codecovTiers-Jan25.csv",
26-
"--model",
27-
"tiers",
28-
)
29-
call_command(
30-
"insert_data_to_db_from_csv",
31-
"core/management/commands/codecovPlans-Jan25.csv",
32-
"--model",
33-
"plans",
34-
)
35-
except Exception as e:
36-
logger.error(f"Failed to run startup command: {e}")
37-
3819
if RUN_ENV not in ["DEV", "TESTING"]:
3920
cache_backend = RedisBackend(get_redis_connection())
4021
cache.configure(cache_backend)

0 commit comments

Comments
 (0)