UPDATE
This commit is contained in:
@@ -135,6 +135,11 @@ CACHES = {
|
||||
}
|
||||
}
|
||||
|
||||
PEST_DISEASE_RISK_SUMMARY_CACHE_TTL = int(os.getenv("PEST_DISEASE_RISK_SUMMARY_CACHE_TTL", "14400"))
|
||||
WATER_NEED_PREDICTION_CACHE_TTL = int(os.getenv("WATER_NEED_PREDICTION_CACHE_TTL", "14400"))
|
||||
SOIL_SUMMARY_CACHE_TTL = int(os.getenv("SOIL_SUMMARY_CACHE_TTL", "14400"))
|
||||
SOIL_ANOMALIES_CACHE_TTL = int(os.getenv("SOIL_ANOMALIES_CACHE_TTL", "14400"))
|
||||
|
||||
REST_FRAMEWORK = {
|
||||
"DEFAULT_PERMISSION_CLASSES": [
|
||||
"rest_framework.permissions.IsAuthenticated",
|
||||
|
||||
@@ -19,6 +19,7 @@ urlpatterns = [
|
||||
|
||||
path("api/crop-zoning/", include("crop_zoning.urls")),
|
||||
path("api/yield-harvest/", include("yield_harvest.urls")),
|
||||
path("api/crop-simulation/", include("yield_harvest.crop_simulation_urls")),
|
||||
|
||||
path("api/pest-detection/", include("pest_detection.urls")),
|
||||
path("api/pest-disease/", include("pest_detection.pest_disease_urls")),
|
||||
|
||||
Reference in New Issue
Block a user