rancher check unique - pos free products check unique - 500 error handling
This commit is contained in:
@@ -26,7 +26,7 @@ BASE_DIR = Path(__file__).resolve().parent.parent
|
||||
SECRET_KEY = 'django-insecure-@0apn-lk85pfw=z00x2ib$w9#rwz8%2v4i_n^^9jz-m9b+y55*'
|
||||
|
||||
# SECURITY WARNING: don't run with debug turned on in production!
|
||||
DEBUG = True
|
||||
DEBUG = False
|
||||
|
||||
sentry_sdk.init(
|
||||
dsn="https://e8d8ff4f1bf729370af00b7775be441c@o4509597964697600.ingest.us.sentry.io/4509597966073856",
|
||||
@@ -98,6 +98,7 @@ INSTALLED_APPS = [
|
||||
MIDDLEWARE = [
|
||||
"corsheaders.middleware.CorsMiddleware",
|
||||
'django.middleware.security.SecurityMiddleware',
|
||||
'apps.core.middlewares.Json500Middleware',
|
||||
'django.contrib.sessions.middleware.SessionMiddleware',
|
||||
'django.middleware.common.CommonMiddleware',
|
||||
'django.middleware.csrf.CsrfViewMiddleware',
|
||||
@@ -110,7 +111,7 @@ MIDDLEWARE = [
|
||||
'apps.pos_device.middlewares.PosDeviceValidationMiddleware'
|
||||
]
|
||||
|
||||
ROOT_URLCONF = 'Rasaddam_Backend.urls'
|
||||
ROOT_URLCONF = 'Rasaddam_Backend.urls' # noqa
|
||||
|
||||
TEMPLATES = [
|
||||
{
|
||||
@@ -196,7 +197,7 @@ REST_FRAMEWORK = {
|
||||
'django_filters.rest_framework.DjangoFilterBackend',
|
||||
'rest_framework.filters.SearchFilter',
|
||||
],
|
||||
# 'EXCEPTION_HANDLER': 'apps.core.error_handler.custom_exception_handler',
|
||||
'EXCEPTION_HANDLER': 'apps.core.error_handler.custom_exception_handler',
|
||||
"DEFAULT_PAGINATION_CLASS": 'apps.core.pagination.CustomPageNumberPagination',
|
||||
"PAGE_SIZE": 20,
|
||||
'DEFAULT_SCHEMA_CLASS': 'rest_framework.schemas.coreapi.AutoSchema'
|
||||
@@ -261,7 +262,7 @@ CHANNEL_LAYERS = {
|
||||
"default": {
|
||||
"BACKEND": "channels_redis.core.RedisChannelLayer",
|
||||
"CONFIG": {
|
||||
"hosts": [("redis://:ydnW4hwzuDRYcTX3FWCHgQ1f@apo.liara.cloud:33740/0")],
|
||||
"hosts": [("redis://:ydnW4hwzuDRYcTX3FWCHgQ1f@apo.liara.cloud:33740/0")], # noqa
|
||||
},
|
||||
},
|
||||
}
|
||||
@@ -286,8 +287,8 @@ ELASTICSEARCH_DSL = {
|
||||
# liara elastic password uYkiQ860vLW8DIbWpNjqtz2B # noqa
|
||||
# local system password =z66+LCIebq4NQRR_+=R # noqa
|
||||
"default": {
|
||||
"hosts": "http://monte-rosa.liara.cloud:31157",
|
||||
"http_auth": ("elastic", "uYkiQ860vLW8DIbWpNjqtz2B"),
|
||||
"hosts": "http://monte-rosa.liara.cloud:31157", # noqa
|
||||
"http_auth": ("elastic", "uYkiQ860vLW8DIbWpNjqtz2B"), # noqa
|
||||
}
|
||||
}
|
||||
|
||||
@@ -450,7 +451,6 @@ JAZZMIN_SETTINGS = {
|
||||
}]
|
||||
},
|
||||
|
||||
# Custom icons for side menu apps/models See https://fontawesome.com/icons?d=gallery&m=free&v=5.0.0,5.0.1,5.0.10,5.0.11,5.0.12,5.0.13,5.0.2,5.0.3,5.0.4,5.0.5,5.0.6,5.0.7,5.0.8,5.0.9,5.1.0,5.1.1,5.2.0,5.3.0,5.3.1,5.4.0,5.4.1,5.4.2,5.13.0,5.12.0,5.11.2,5.11.1,5.10.0,5.9.0,5.8.2,5.8.1,5.7.2,5.7.1,5.7.0,5.6.3,5.5.0,5.4.2
|
||||
# for the full list of 5.13.0 free icon classes
|
||||
"icons": {
|
||||
"auth": "fas fa-users-cog",
|
||||
|
||||
Reference in New Issue
Block a user