feat(reports): add localized workspace reports and exports
This commit is contained in:
@@ -46,6 +46,7 @@ LOCAL_APPS = [
|
||||
"apps.tags",
|
||||
"apps.time_entries",
|
||||
"apps.notifications",
|
||||
"apps.reports",
|
||||
]
|
||||
|
||||
INSTALLED_APPS = DJANGO_APPS + THIRD_PARTY_APPS + LOCAL_APPS
|
||||
@@ -197,7 +198,7 @@ CACHES = {
|
||||
}
|
||||
}
|
||||
|
||||
CELERY_BROKER_URL = os.getenv("CELERY_BROKER_URL", f"redis://:{REDIS_PASSWORD}@{REDIS_HOST}:{REDIS_PORT}/1")
|
||||
CELERY_BROKER_URL = os.getenv("CELERY_BROKER_URL", "redis://127.0.0.1:6379/0")
|
||||
CELERY_RESULT_BACKEND = os.getenv("CELERY_RESULT_BACKEND", "redis://127.0.0.1:6379/1")
|
||||
CELERY_ACCEPT_CONTENT = ["json"]
|
||||
CELERY_TASK_SERIALIZER = "json"
|
||||
@@ -230,7 +231,9 @@ NOTIFICATION_TOAST_LEVELS = tuple(
|
||||
if level.strip()
|
||||
)
|
||||
|
||||
CELERY_IMPORTS = ("apps.users.tasks", "apps.notifications.tasks")
|
||||
REPORT_EXPORT_RETENTION_DAYS = int(os.getenv("REPORT_EXPORT_RETENTION_DAYS", "7"))
|
||||
|
||||
CELERY_IMPORTS = ("apps.users.tasks", "apps.notifications.tasks", "apps.reports.tasks")
|
||||
|
||||
|
||||
STORAGES = {
|
||||
|
||||
@@ -22,6 +22,7 @@ urlpatterns = [
|
||||
path('api/', include('apps.tags.api.urls'), name="tags"),
|
||||
path('api/', include('apps.time_entries.api.urls'), name="time_entries"),
|
||||
path("api/notifications/", include("apps.notifications.api.urls"), name="notifications"),
|
||||
path("api/reports/", include("apps.reports.api.urls"), name="reports"),
|
||||
]
|
||||
|
||||
if settings.DEBUG:
|
||||
|
||||
Reference in New Issue
Block a user