2026-04-25 17:22:41 +03:30
|
|
|
from functools import cached_property
|
|
|
|
|
|
2026-02-27 13:09:00 +03:30
|
|
|
from django.apps import AppConfig
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class SoilDataConfig(AppConfig):
|
|
|
|
|
default_auto_field = "django.db.models.BigAutoField"
|
2026-03-19 22:54:29 +03:30
|
|
|
name = "location_data"
|
2026-02-27 13:09:00 +03:30
|
|
|
verbose_name = "Soil Data (SoilGrids)"
|
2026-04-25 17:22:41 +03:30
|
|
|
|
|
|
|
|
@cached_property
|
|
|
|
|
def ndvi_health_service(self):
|
|
|
|
|
from .ndvi import NdviHealthService
|
|
|
|
|
|
|
|
|
|
return NdviHealthService()
|
|
|
|
|
|
|
|
|
|
def get_ndvi_health_service(self):
|
|
|
|
|
return self.ndvi_health_service
|