Implement exchange imports and frontend reporting APIs
Some checks failed
CI/CD Pipeline / Code Quality Checks (push) Failing after 3m50s
CI/CD Pipeline / Run Tests (push) Successful in 3m57s
CI/CD Pipeline / Build Docker Images (push) Has been skipped
CI/CD Pipeline / Push to Gitea Registry (push) Has been skipped
CI/CD Pipeline / Deploy to Server (push) Has been skipped
Some checks failed
CI/CD Pipeline / Code Quality Checks (push) Failing after 3m50s
CI/CD Pipeline / Run Tests (push) Successful in 3m57s
CI/CD Pipeline / Build Docker Images (push) Has been skipped
CI/CD Pipeline / Push to Gitea Registry (push) Has been skipped
CI/CD Pipeline / Deploy to Server (push) Has been skipped
This commit is contained in:
@@ -4,12 +4,13 @@ API v1 URL configuration.
|
||||
Все API эндпоинты версионированы под /api/v1/
|
||||
"""
|
||||
|
||||
from django.urls import include, path
|
||||
|
||||
from apps.core.views import (
|
||||
BackgroundJobListView,
|
||||
BackgroundJobStatusView,
|
||||
BackgroundJobStreamView,
|
||||
)
|
||||
from django.urls import include, path
|
||||
|
||||
app_name = "api_v1"
|
||||
|
||||
@@ -20,10 +21,13 @@ jobs_urlpatterns = [
|
||||
]
|
||||
|
||||
urlpatterns = [
|
||||
path("analytics/", include("apps.organization.analytics_root_urls")),
|
||||
path("exchange/", include("apps.exchange.urls")),
|
||||
path("users/", include("apps.user.urls")),
|
||||
path("jobs/", include((jobs_urlpatterns, "jobs"))),
|
||||
path("organizations/", include("apps.organization.urls")),
|
||||
path("registers/", include("apps.registers.urls")),
|
||||
path("", include("apps.external_data.urls")),
|
||||
path("forms/f1/", include("apps.form_1.urls")),
|
||||
path("forms/f2/", include("apps.form_2.urls")),
|
||||
path("forms/f3/", include("apps.form_3.urls")),
|
||||
|
||||
@@ -9,9 +9,10 @@ https://docs.djangoproject.com/en/3.2/howto/deployment/asgi/
|
||||
|
||||
import os
|
||||
|
||||
from apps.core.startup_checks import run_startup_checks
|
||||
from django.core.asgi import get_asgi_application
|
||||
|
||||
from apps.core.startup_checks import run_startup_checks
|
||||
|
||||
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "settings.production")
|
||||
run_startup_checks(component="asgi")
|
||||
|
||||
|
||||
@@ -8,9 +8,10 @@ import logging
|
||||
import os
|
||||
import sys
|
||||
|
||||
from apps.core.startup_checks import run_startup_checks
|
||||
from celery import Celery
|
||||
|
||||
from apps.core.startup_checks import run_startup_checks
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
# Set the Django settings module for the 'celery' program.
|
||||
|
||||
@@ -8,14 +8,15 @@ from django.conf import settings
|
||||
from django.conf.urls.static import static
|
||||
from django.contrib import admin
|
||||
from django.urls import include, path
|
||||
from drf_yasg import openapi
|
||||
from drf_yasg.views import get_schema_view
|
||||
from rest_framework import permissions
|
||||
|
||||
from apps.core.openapi import (
|
||||
OPENAPI_PROJECT_DESCRIPTION,
|
||||
OPENAPI_PROJECT_TITLE,
|
||||
RussianTagSchemaGenerator,
|
||||
)
|
||||
from drf_yasg import openapi
|
||||
from drf_yasg.views import get_schema_view
|
||||
from rest_framework import permissions
|
||||
|
||||
# Swagger schema view
|
||||
schema_view = get_schema_view(
|
||||
|
||||
@@ -9,9 +9,10 @@ https://docs.djangoproject.com/en/3.2/howto/deployment/wsgi/
|
||||
|
||||
import os
|
||||
|
||||
from apps.core.startup_checks import run_startup_checks
|
||||
from django.core.wsgi import get_wsgi_application
|
||||
|
||||
from apps.core.startup_checks import run_startup_checks
|
||||
|
||||
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "settings.dev")
|
||||
run_startup_checks(component="wsgi")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user