prepare allocate tags to organizations api

This commit is contained in:
2025-05-27 15:09:22 +03:30
parent bc710c74c6
commit 6f8f9463b0
29 changed files with 951 additions and 48 deletions

View File

@@ -35,7 +35,8 @@ ALLOWED_HOSTS = [
'https://api.rasadyaar.net',
'https://api.dam.rasadyaar.net',
'http://localhost:3000',
'http://192.168.88.130:3000'
'http://192.168.88.130:3000',
'https://rasaddam-front.liara.run'
]
# Application definition
@@ -151,6 +152,7 @@ REST_FRAMEWORK = {
'rest_framework.authentication.SessionAuthentication',
'rest_framework.authentication.BasicAuthentication',
),
'EXCEPTION_HANDLER': 'apps.core.error_handler.custom_exception_handler',
"DEFAULT_PAGINATION_CLASS": "rest_framework.pagination.LimitOffsetPagination",
"PAGE_SIZE": 25,
'DEFAULT_SCHEMA_CLASS': 'rest_framework.schemas.coreapi.AutoSchema'
@@ -282,16 +284,6 @@ DATA_UPLOAD_MAX_MEMORY_SIZE = 50242880
CORS_ORIGIN_ALLOW_ALL = False
CORS_ALLOW_CREDENTIALS = True
# CORS_ORIGIN_WHITELIST = (
# # 'http://localhost:8080',
# # 'http://127.0.0.1:8080',
# # 'http://127.0.0.1:3000',
# # 'http://localhost:3000',
# # 'http://192.168.88.130:3000',
# # 'https://rasadyar.net'
# '*',
# )
#
CORS_ALLOWED_ORIGINS = (
'http://localhost:8080',
'http://127.0.0.1:8080',
@@ -299,6 +291,7 @@ CORS_ALLOWED_ORIGINS = (
'http://localhost:3000',
'http://192.168.88.130:3000',
'https://rasadyar.net'
'https://rasaddam-front.liara.run'
)
SECURE_PROXY_SSL_HEADER = ('HTTP_X_FORWARDED_PROTO', 'https')

View File

@@ -17,6 +17,14 @@ Including another URLconf
from django.contrib import admin
from django.urls import path, include
from apps.core.swagger import schema_view
from django.conf.urls import (
handler400,
handler403,
handler500,
handler404,
)
# handler500 = 'apps.core.error_handler.handler500' # noqa
urlpatterns = [
path('admin/', admin.site.urls),