Настроил сеелери, начал привязку lyngsat
This commit is contained in:
@@ -73,22 +73,13 @@ INSTALLED_APPS = [
|
||||
"django_admin_multiple_choice_list_filter",
|
||||
"more_admin_filters",
|
||||
"import_export",
|
||||
"django_celery_results",
|
||||
# Project apps
|
||||
"mainapp",
|
||||
"mapsapp",
|
||||
"lyngsatapp",
|
||||
]
|
||||
|
||||
# Add Celery results app if available
|
||||
try:
|
||||
import django_celery_results
|
||||
|
||||
INSTALLED_APPS.append("django_celery_results")
|
||||
except ImportError:
|
||||
pass
|
||||
|
||||
# Note: Custom user model is implemented via OneToOneField relationship
|
||||
# If you need a custom user model, uncomment and configure:
|
||||
# AUTH_USER_MODEL = 'mainapp.CustomUser'
|
||||
|
||||
# ============================================================================
|
||||
@@ -240,7 +231,7 @@ LEAFLET_CONFIG = {
|
||||
|
||||
# Celery Configuration Options
|
||||
CELERY_BROKER_URL = os.getenv("CELERY_BROKER_URL", "redis://localhost:6379/0")
|
||||
CELERY_RESULT_BACKEND = "django-db"
|
||||
CELERY_RESULT_BACKEND = os.getenv("CELERY_BROKER_URL", "redis://localhost:6379/0") # Use Redis for results
|
||||
CELERY_CACHE_BACKEND = "default"
|
||||
|
||||
# Celery Task Configuration
|
||||
|
||||
Reference in New Issue
Block a user