{"_default": {"1": {"endpoint": "/livestock/web/api/v1/livestock_species/", "response_code": 401, "method": "POST", "remote_address": "127.0.0.1", "exec_time": 0, "body_response": "{\"detail\":\"Authentication credentials were not provided.\"}", "client_ip": "127.0.0.1", "browser_info": "PostmanRuntime/7.44.0", "log_created_at": "2025-05-24 10:54:55.040619"}, "2": {"endpoint": "/livestock/web/api/v1/livestock_species/", "response_code": 401, "method": "POST", "remote_address": "127.0.0.1", "exec_time": 0, "body_response": "{\"detail\":\"Authentication credentials were not provided.\"}", "client_ip": "127.0.0.1", "browser_info": "PostmanRuntime/7.44.0", "log_created_at": "2025-05-24 10:54:59.706596"}, "3": {"endpoint": "/livestock/web/api/v1/livestock_species/", "response_code": 401, "method": "POST", "remote_address": "127.0.0.1", "exec_time": 0, "body_response": "{\"detail\":\"Authentication credentials were not provided.\"}", "body_request": {}, "client_ip": "127.0.0.1", "browser_info": "PostmanRuntime/7.44.0", "log_created_at": "2025-05-24 10:56:29.544076"}, "4": {"endpoint": "/livestock/web/api/v1/livestock_species/", "response_code": 401, "method": "POST", "remote_address": "127.0.0.1", "exec_time": 0, "body_response": "{\"detail\":\"Authentication credentials were not provided.\"}", "body_request": {}, "client_ip": "127.0.0.1", "browser_info": "PostmanRuntime/7.44.0", "log_created_at": "2025-05-24 10:57:05.503536"}, "5": {"endpoint": "/livestock/web/api/v1/livestock_species/", "response_code": 500, "method": "POST", "remote_address": "127.0.0.1", "exec_time": 545, "body_response": "\n\n
\n \n \nnull value in column "age_by_day" of relation "livestock_livestock" violates not-null constraint\nDETAIL: Failing row contains (1, 2025-05-24 07:27:42.502517+00, 2025-05-24 07:27:42.502517+00, f, null, 1, null, null, null, null, null, L, null, null, null, 2, 2, \u0645\u062c\u062a\u0628\u06cc \u0630\u0648\u0627\u0644\u0641\u0642\u0627\u0631\u06cc-4061080598, \u0645\u062c\u062a\u0628\u06cc \u0630\u0648\u0627\u0644\u0641\u0642\u0627\u0631\u06cc-4061080598).\n\n
| Request Method: | \nPOST | \n
|---|---|
| Request URL: | \nhttp://127.0.0.1:8000/livestock/web/api/v1/livestock_species/ | \n
| Django Version: | \n5.0 | \n
| Exception Type: | \nIntegrityError | \n
| Exception Value: | \nnull value in column "age_by_day" of relation "livestock_livestock" violates not-null constraint\nDETAIL: Failing row contains (1, 2025-05-24 07:27:42.502517+00, 2025-05-24 07:27:42.502517+00, f, null, 1, null, null, null, null, null, L, null, null, null, 2, 2, \u0645\u062c\u062a\u0628\u06cc \u0630\u0648\u0627\u0644\u0641\u0642\u0627\u0631\u06cc-4061080598, \u0645\u062c\u062a\u0628\u06cc \u0630\u0648\u0627\u0644\u0641\u0642\u0627\u0631\u06cc-4061080598).\n | \n
| Exception Location: | \nD:\\Software\\env\\Lib\\site-packages\\django\\db\\backends\\utils.py, line 105, in _execute | \n
| Raised during: | \napps.livestock.web.api.v1.api.LiveStockViewSet | \n
| Python Executable: | \nD:\\Software\\env\\Scripts\\python.exe | \n
| Python Version: | \n3.12.0 | \n
| Python Path: | \n['D:\\\\Project\\\\Rasaddam_Backend',\n 'D:\\\\Software\\\\python-3.12.0\\\\python312.zip',\n 'D:\\\\Software\\\\python-3.12.0\\\\DLLs',\n 'D:\\\\Software\\\\python-3.12.0\\\\Lib',\n 'D:\\\\Software\\\\python-3.12.0',\n 'D:\\\\Software\\\\env',\n 'D:\\\\Software\\\\env\\\\Lib\\\\site-packages',\n 'D:\\\\Software\\\\env\\\\Lib\\\\site-packages\\\\setuptools\\\\_vendor'] | \n
| Server time: | \nSat, 24 May 2025 07:27:42 +0000 | \n
D:\\Software\\env\\Lib\\site-packages\\django\\db\\backends\\utils.py, line 105, in _execute\n \n\n \n warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
self.db.validate_no_broken_transaction()
with self.db.wrap_database_errors:
if params is None:
# params default might be backend specific.
return self.cursor.execute(sql)
else:
return self.cursor.execute(sql, params)\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\u2026
def _executemany(self, sql, param_list, *ignored_wrapper_args):
# Raise a warning during app initialization (stored_app_configs is only
# ever set during testing).
if not apps.ready and not apps.stored_app_configs:
warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
| Variable | \nValue | \n
|---|---|
| ignored_wrapper_args | \n(False,\n {'connection': <DatabaseWrapper vendor='postgresql' alias='default'>,\n 'cursor': <django.db.backends.postgresql.base.CursorDebugWrapper object at 0x000001C39D4BFDD0>}) | \n
| params | \n(datetime.datetime(2025, 5, 24, 7, 27, 42, 502517, tzinfo=datetime.timezone.utc),\n datetime.datetime(2025, 5, 24, 7, 27, 42, 502517, tzinfo=datetime.timezone.utc),\n 2,\n 2,\n '\u0645\u062c\u062a\u0628\u06cc \u0630\u0648\u0627\u0644\u0641\u0642\u0627\u0631\u06cc-4061080598',\n '\u0645\u062c\u062a\u0628\u06cc \u0630\u0648\u0627\u0644\u0641\u0642\u0627\u0631\u06cc-4061080598',\n False,\n None,\n None,\n None,\n None,\n 'L',\n None,\n None,\n 1) | \n
| self | \n<django.db.backends.postgresql.base.CursorDebugWrapper object at 0x000001C39D4BFDD0> | \n
| sql | \n('INSERT INTO "livestock_livestock" ("create_date", "modify_date", '\n '"created_by_id", "modified_by_id", "creator_info", "modifier_info", "trash", '\n '"herd_id", "tag_id", "type_id", "use_type_id", "weight_type", "species_id", '\n '"birthdate", "gender") VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, '\n '%s, %s, %s, %s) RETURNING "livestock_livestock"."id"') | \n
D:\\Software\\env\\Lib\\site-packages\\django\\core\\handlers\\exception.py, line 55, in inner\n \n\n \n return inner
else:
@wraps(get_response)
def inner(request):
try:
response = get_response(request)\n ^^^^^^^^^^^^^^^^^^^^^\u2026
except Exception as exc:
response = response_for_exception(request, exc)
return response
return inner
| Variable | \nValue | \n
|---|---|
| exc | \nIntegrityError('null value in column "age_by_day" of relation "livestock_livestock" violates not-null constraint\\nDETAIL: Failing row contains (1, 2025-05-24 07:27:42.502517+00, 2025-05-24 07:27:42.502517+00, f, null, 1, null, null, null, null, null, L, null, null, null, 2, 2, \u0645\u062c\u062a\u0628\u06cc \u0630\u0648\u0627\u0644\u0641\u0642\u0627\u0631\u06cc-4061080598, \u0645\u062c\u062a\u0628\u06cc \u0630\u0648\u0627\u0644\u0641\u0642\u0627\u0631\u06cc-4061080598).\\n') | \n
| get_response | \n<bound method BaseHandler._get_response of <django.core.handlers.wsgi.WSGIHandler object at 0x000001C39D12D910>> | \n
| request | \n<WSGIRequest: POST '/livestock/web/api/v1/livestock_species/'> | \n
D:\\Software\\env\\Lib\\site-packages\\django\\core\\handlers\\base.py, line 197, in _get_response\n \n\n \n if response is None:
wrapped_callback = self.make_view_atomic(callback)
# If it is an asynchronous view, run it in a subthread.
if iscoroutinefunction(wrapped_callback):
wrapped_callback = async_to_sync(wrapped_callback)
try:
response = wrapped_callback(request, *callback_args, **callback_kwargs)\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\u2026
except Exception as e:
response = self.process_exception_by_middleware(e, request)
if response is None:
raise
# Complain if the view returned None (a common error).
| Variable | \nValue | \n
|---|---|
| callback | \n<function LiveStockViewSet at 0x000001C39CFFAFC0> | \n
| callback_args | \n() | \n
| callback_kwargs | \n{} | \n
| middleware_method | \n<bound method CsrfViewMiddleware.process_view of <CsrfViewMiddleware get_response=convert_exception_to_response.<locals>.inner>> | \n
| request | \n<WSGIRequest: POST '/livestock/web/api/v1/livestock_species/'> | \n
| response | \nNone | \n
| self | \n<django.core.handlers.wsgi.WSGIHandler object at 0x000001C39D12D910> | \n
| wrapped_callback | \n<function LiveStockViewSet at 0x000001C39CFFAFC0> | \n
D:\\Software\\env\\Lib\\site-packages\\django\\views\\decorators\\csrf.py, line 65, in _view_wrapper\n \n\n \n async def _view_wrapper(request, *args, **kwargs):
return await view_func(request, *args, **kwargs)
else:
def _view_wrapper(request, *args, **kwargs):
return view_func(request, *args, **kwargs)\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\u2026
_view_wrapper.csrf_exempt = True
return wraps(view_func)(_view_wrapper)
| Variable | \nValue | \n
|---|---|
| args | \n() | \n
| kwargs | \n{} | \n
| request | \n<WSGIRequest: POST '/livestock/web/api/v1/livestock_species/'> | \n
| view_func | \n<function LiveStockViewSet at 0x000001C39CFFAF20> | \n
D:\\Software\\env\\Lib\\site-packages\\rest_framework\\viewsets.py, line 125, in view\n \n\n \n setattr(self, method, handler)
self.request = request
self.args = args
self.kwargs = kwargs
# And continue as usual
return self.dispatch(request, *args, **kwargs)\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\u2026
# take name and docstring from class
update_wrapper(view, cls, updated=())
# and possible attributes set by decorators
# like csrf_exempt from dispatch
| Variable | \nValue | \n
|---|---|
| action | \n'list' | \n
| actions | \n{'get': 'list', 'head': 'list', 'post': 'create'} | \n
| args | \n() | \n
| cls | \n<class 'apps.livestock.web.api.v1.api.LiveStockViewSet'> | \n
| handler | \n<bound method ListModelMixin.list of <apps.livestock.web.api.v1.api.LiveStockViewSet object at 0x000001C39D47F830>> | \n
| initkwargs | \n{'basename': 'livestock_species', 'detail': False, 'suffix': 'List'} | \n
| kwargs | \n{} | \n
| method | \n'head' | \n
| request | \n<WSGIRequest: POST '/livestock/web/api/v1/livestock_species/'> | \n
| self | \n<apps.livestock.web.api.v1.api.LiveStockViewSet object at 0x000001C39D47F830> | \n
D:\\Software\\env\\Lib\\site-packages\\rest_framework\\views.py, line 515, in dispatch\n \n\n \n self.http_method_not_allowed)
else:
handler = self.http_method_not_allowed
response = handler(request, *args, **kwargs)
except Exception as exc:
response = self.handle_exception(exc)\n ^^^^^^^^^^^^^^^^^^^^^^^^^^\u2026
self.response = self.finalize_response(request, response, *args, **kwargs)
return self.response
def options(self, request, *args, **kwargs):
"""
| Variable | \nValue | \n
|---|---|
| args | \n() | \n
| handler | \n<bound method CreateModelMixin.create of <apps.livestock.web.api.v1.api.LiveStockViewSet object at 0x000001C39D47F830>> | \n
| kwargs | \n{} | \n
| request | \n<rest_framework.request.Request: POST '/livestock/web/api/v1/livestock_species/'> | \n
| self | \n<apps.livestock.web.api.v1.api.LiveStockViewSet object at 0x000001C39D47F830> | \n
D:\\Software\\env\\Lib\\site-packages\\rest_framework\\views.py, line 475, in handle_exception\n \n\n \n exception_handler = self.get_exception_handler()
context = self.get_exception_handler_context()
response = exception_handler(exc, context)
if response is None:
self.raise_uncaught_exception(exc)\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\u2026
response.exception = True
return response
def raise_uncaught_exception(self, exc):
if settings.DEBUG:
| Variable | \nValue | \n
|---|---|
| context | \n{'args': (),\n 'kwargs': {},\n 'request': <rest_framework.request.Request: POST '/livestock/web/api/v1/livestock_species/'>,\n 'view': <apps.livestock.web.api.v1.api.LiveStockViewSet object at 0x000001C39D47F830>} | \n
| exc | \nIntegrityError('null value in column "age_by_day" of relation "livestock_livestock" violates not-null constraint\\nDETAIL: Failing row contains (1, 2025-05-24 07:27:42.502517+00, 2025-05-24 07:27:42.502517+00, f, null, 1, null, null, null, null, null, L, null, null, null, 2, 2, \u0645\u062c\u062a\u0628\u06cc \u0630\u0648\u0627\u0644\u0641\u0642\u0627\u0631\u06cc-4061080598, \u0645\u062c\u062a\u0628\u06cc \u0630\u0648\u0627\u0644\u0641\u0642\u0627\u0631\u06cc-4061080598).\\n') | \n
| exception_handler | \n<function exception_handler at 0x000001C39CCADE40> | \n
| response | \nNone | \n
| self | \n<apps.livestock.web.api.v1.api.LiveStockViewSet object at 0x000001C39D47F830> | \n
D:\\Software\\env\\Lib\\site-packages\\rest_framework\\views.py, line 486, in raise_uncaught_exception\n \n\n \n def raise_uncaught_exception(self, exc):
if settings.DEBUG:
request = self.request
renderer_format = getattr(request.accepted_renderer, 'format')
use_plaintext_traceback = renderer_format not in ('html', 'api', 'admin')request.force_plaintext_errors(use_plaintext_traceback)
raise exc\n ^^^^^^^^^\u2026
# Note: Views are made CSRF exempt from within `as_view` as to prevent
# accidental removal of this exemption in cases where `dispatch` needs to
# be overridden.
def dispatch(self, request, *args, **kwargs):
"""
| Variable | \nValue | \n
|---|---|
| exc | \nIntegrityError('null value in column "age_by_day" of relation "livestock_livestock" violates not-null constraint\\nDETAIL: Failing row contains (1, 2025-05-24 07:27:42.502517+00, 2025-05-24 07:27:42.502517+00, f, null, 1, null, null, null, null, null, L, null, null, null, 2, 2, \u0645\u062c\u062a\u0628\u06cc \u0630\u0648\u0627\u0644\u0641\u0642\u0627\u0631\u06cc-4061080598, \u0645\u062c\u062a\u0628\u06cc \u0630\u0648\u0627\u0644\u0641\u0642\u0627\u0631\u06cc-4061080598).\\n') | \n
| renderer_format | \n'json' | \n
| request | \n<rest_framework.request.Request: POST '/livestock/web/api/v1/livestock_species/'> | \n
| self | \n<apps.livestock.web.api.v1.api.LiveStockViewSet object at 0x000001C39D47F830> | \n
| use_plaintext_traceback | \nTrue | \n
D:\\Software\\env\\Lib\\site-packages\\rest_framework\\views.py, line 512, in dispatch\n \n\n \n # Get the appropriate handler method
if request.method.lower() in self.http_method_names:
handler = getattr(self, request.method.lower(),
self.http_method_not_allowed)
else:
handler = self.http_method_not_allowed
response = handler(request, *args, **kwargs)\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\u2026
except Exception as exc:
response = self.handle_exception(exc)
self.response = self.finalize_response(request, response, *args, **kwargs)
return self.response
| Variable | \nValue | \n
|---|---|
| args | \n() | \n
| handler | \n<bound method CreateModelMixin.create of <apps.livestock.web.api.v1.api.LiveStockViewSet object at 0x000001C39D47F830>> | \n
| kwargs | \n{} | \n
| request | \n<rest_framework.request.Request: POST '/livestock/web/api/v1/livestock_species/'> | \n
| self | \n<apps.livestock.web.api.v1.api.LiveStockViewSet object at 0x000001C39D47F830> | \n
D:\\Software\\env\\Lib\\site-packages\\rest_framework\\mixins.py, line 19, in create\n \n\n \n class CreateModelMixin:
"""
Create a model instance.
"""
def create(self, request, *args, **kwargs):
serializer = self.get_serializer(data=request.data)
serializer.is_valid(raise_exception=True)
self.perform_create(serializer)\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\u2026
headers = self.get_success_headers(serializer.data)
return Response(serializer.data, status=status.HTTP_201_CREATED, headers=headers)
def perform_create(self, serializer):
serializer.save()
| Variable | \nValue | \n
|---|---|
| args | \n() | \n
| kwargs | \n{} | \n
| request | \n<rest_framework.request.Request: POST '/livestock/web/api/v1/livestock_species/'> | \n
| self | \n<apps.livestock.web.api.v1.api.LiveStockViewSet object at 0x000001C39D47F830> | \n
| serializer | \nLiveStockSerializer(context={'request': <rest_framework.request.Request: POST '/livestock/web/api/v1/livestock_species/'>, 'format': None, 'view': <apps.livestock.web.api.v1.api.LiveStockViewSet object>}, data={'name': '\u06af\u0648\u0633\u0641\u0646\u062f'}):\n id = IntegerField(label='ID', read_only=True)\n create_date = DateTimeField(read_only=True)\n modify_date = DateTimeField(read_only=True)\n creator_info = CharField(allow_null=True, max_length=100, required=False)\n modifier_info = CharField(allow_null=True, max_length=100, required=False)\n trash = BooleanField(required=False)\n weight_type = ChoiceField(choices=[('L', 'Light'), ('H', 'Heavy')], required=False)\n birthdate = DateTimeField(allow_null=True, required=False)\n gender = ChoiceField(choices=[(1, 'male'), (2, 'female')], required=False, validators=[<django.core.validators.MinValueValidator object>, <django.core.validators.MaxValueValidator object>])\n created_by = PrimaryKeyRelatedField(allow_null=True, queryset=User.objects.all(), required=False)\n modified_by = PrimaryKeyRelatedField(allow_null=True, queryset=User.objects.all(), required=False)\n herd = PrimaryKeyRelatedField(allow_null=True, queryset=Herd.objects.all(), required=False)\n tag = PrimaryKeyRelatedField(allow_null=True, queryset=Tag.objects.all(), required=False)\n type = PrimaryKeyRelatedField(allow_null=True, queryset=LiveStockType.objects.all(), required=False)\n use_type = PrimaryKeyRelatedField(allow_null=True, queryset=LiveStockUseType.objects.all(), required=False)\n species = PrimaryKeyRelatedField(allow_null=True, queryset=LiveStockSpecies.objects.all(), required=False) | \n
D:\\Software\\env\\Lib\\site-packages\\rest_framework\\mixins.py, line 24, in perform_create\n \n\n \n serializer = self.get_serializer(data=request.data)
serializer.is_valid(raise_exception=True)
self.perform_create(serializer)
headers = self.get_success_headers(serializer.data)
return Response(serializer.data, status=status.HTTP_201_CREATED, headers=headers)
def perform_create(self, serializer):
serializer.save()\n ^^^^^^^^^^^^^^^^^\u2026
def get_success_headers(self, data):
try:
return {'Location': str(data[api_settings.URL_FIELD_NAME])}except (TypeError, KeyError):
return {}| Variable | \nValue | \n
|---|---|
| self | \n<apps.livestock.web.api.v1.api.LiveStockViewSet object at 0x000001C39D47F830> | \n
| serializer | \nLiveStockSerializer(context={'request': <rest_framework.request.Request: POST '/livestock/web/api/v1/livestock_species/'>, 'format': None, 'view': <apps.livestock.web.api.v1.api.LiveStockViewSet object>}, data={'name': '\u06af\u0648\u0633\u0641\u0646\u062f'}):\n id = IntegerField(label='ID', read_only=True)\n create_date = DateTimeField(read_only=True)\n modify_date = DateTimeField(read_only=True)\n creator_info = CharField(allow_null=True, max_length=100, required=False)\n modifier_info = CharField(allow_null=True, max_length=100, required=False)\n trash = BooleanField(required=False)\n weight_type = ChoiceField(choices=[('L', 'Light'), ('H', 'Heavy')], required=False)\n birthdate = DateTimeField(allow_null=True, required=False)\n gender = ChoiceField(choices=[(1, 'male'), (2, 'female')], required=False, validators=[<django.core.validators.MinValueValidator object>, <django.core.validators.MaxValueValidator object>])\n created_by = PrimaryKeyRelatedField(allow_null=True, queryset=User.objects.all(), required=False)\n modified_by = PrimaryKeyRelatedField(allow_null=True, queryset=User.objects.all(), required=False)\n herd = PrimaryKeyRelatedField(allow_null=True, queryset=Herd.objects.all(), required=False)\n tag = PrimaryKeyRelatedField(allow_null=True, queryset=Tag.objects.all(), required=False)\n type = PrimaryKeyRelatedField(allow_null=True, queryset=LiveStockType.objects.all(), required=False)\n use_type = PrimaryKeyRelatedField(allow_null=True, queryset=LiveStockUseType.objects.all(), required=False)\n species = PrimaryKeyRelatedField(allow_null=True, queryset=LiveStockSpecies.objects.all(), required=False) | \n
D:\\Software\\env\\Lib\\site-packages\\rest_framework\\serializers.py, line 210, in save\n \n\n \n if self.instance is not None:
self.instance = self.update(self.instance, validated_data)
assert self.instance is not None, (
'`update()` did not return an object instance.'
)
else:
self.instance = self.create(validated_data)\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^\u2026
assert self.instance is not None, (
'`create()` did not return an object instance.'
)
return self.instance
| Variable | \nValue | \n
|---|---|
| kwargs | \n{} | \n
| self | \nLiveStockSerializer(context={'request': <rest_framework.request.Request: POST '/livestock/web/api/v1/livestock_species/'>, 'format': None, 'view': <apps.livestock.web.api.v1.api.LiveStockViewSet object>}, data={'name': '\u06af\u0648\u0633\u0641\u0646\u062f'}):\n id = IntegerField(label='ID', read_only=True)\n create_date = DateTimeField(read_only=True)\n modify_date = DateTimeField(read_only=True)\n creator_info = CharField(allow_null=True, max_length=100, required=False)\n modifier_info = CharField(allow_null=True, max_length=100, required=False)\n trash = BooleanField(required=False)\n weight_type = ChoiceField(choices=[('L', 'Light'), ('H', 'Heavy')], required=False)\n birthdate = DateTimeField(allow_null=True, required=False)\n gender = ChoiceField(choices=[(1, 'male'), (2, 'female')], required=False, validators=[<django.core.validators.MinValueValidator object>, <django.core.validators.MaxValueValidator object>])\n created_by = PrimaryKeyRelatedField(allow_null=True, queryset=User.objects.all(), required=False)\n modified_by = PrimaryKeyRelatedField(allow_null=True, queryset=User.objects.all(), required=False)\n herd = PrimaryKeyRelatedField(allow_null=True, queryset=Herd.objects.all(), required=False)\n tag = PrimaryKeyRelatedField(allow_null=True, queryset=Tag.objects.all(), required=False)\n type = PrimaryKeyRelatedField(allow_null=True, queryset=LiveStockType.objects.all(), required=False)\n use_type = PrimaryKeyRelatedField(allow_null=True, queryset=LiveStockUseType.objects.all(), required=False)\n species = PrimaryKeyRelatedField(allow_null=True, queryset=LiveStockSpecies.objects.all(), required=False) | \n
| validated_data | \n{} | \n
D:\\Software\\env\\Lib\\site-packages\\rest_framework\\serializers.py, line 991, in create\n \n\n \n info = model_meta.get_field_info(ModelClass)
many_to_many = {}for field_name, relation_info in info.relations.items():
if relation_info.to_many and (field_name in validated_data):
many_to_many[field_name] = validated_data.pop(field_name)
try:
instance = ModelClass._default_manager.create(**validated_data)\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\u2026
except TypeError:
tb = traceback.format_exc()
msg = (
'Got a `TypeError` when calling `%s.%s.create()`. '
'This may be because you have a writable field on the '
'serializer class that is not a valid argument to '
| Variable | \nValue | \n
|---|---|
| ModelClass | \n<class 'apps.livestock.models.LiveStock'> | \n
| field_name | \n'species' | \n
| info | \nFieldInfo(pk=<django.db.models.fields.BigAutoField: id>, fields={'create_date': <django.db.models.fields.DateTimeField: create_date>, 'modify_date': <django.db.models.fields.DateTimeField: modify_date>, 'creator_info': <django.db.models.fields.CharField: creator_info>, 'modifier_info': <django.db.models.fields.CharField: modifier_info>, 'trash': <django.db.models.fields.BooleanField: trash>, 'weight_type': <django.db.models.fields.CharField: weight_type>, 'birthdate': <django.db.models.fields.DateTimeField: birthdate>, 'gender': <django.db.models.fields.IntegerField: gender>}, forward_relations={'created_by': RelationInfo(model_field=<django.db.models.fields.related.ForeignKey: created_by>, related_model=<class 'apps.authentication.models.User'>, to_many=False, to_field=None, has_through_model=False, reverse=False), 'modified_by': RelationInfo(model_field=<django.db.models.fields.related.ForeignKey: modified_by>, related_model=<class 'apps.authentication.models.User'>, to_many=False, to_field=None, has_through_model=False, reverse=False), 'herd': RelationInfo(model_field=<django.db.models.fields.related.ForeignKey: herd>, related_model=<class 'apps.herd.models.Herd'>, to_many=False, to_field='id', has_through_model=False, reverse=False), 'tag': RelationInfo(model_field=<django.db.models.fields.related.ForeignKey: tag>, related_model=<class 'apps.tag.models.Tag'>, to_many=False, to_field='id', has_through_model=False, reverse=False), 'type': RelationInfo(model_field=<django.db.models.fields.related.ForeignKey: type>, related_model=<class 'apps.livestock.models.LiveStockType'>, to_many=False, to_field='id', has_through_model=False, reverse=False), 'use_type': RelationInfo(model_field=<django.db.models.fields.related.ForeignKey: use_type>, related_model=<class 'apps.livestock.models.LiveStockUseType'>, to_many=False, to_field='id', has_through_model=False, reverse=False), 'species': RelationInfo(model_field=<django.db.models.fields.related.ForeignKey: species>, related_model=<class 'apps.livestock.models.LiveStockSpecies'>, to_many=False, to_field='id', has_through_model=False, reverse=False)}, reverse_relations={}, fields_and_pk={'pk': <django.db.models.fields.BigAutoField: id>, 'id': <django.db.models.fields.BigAutoField: id>, 'create_date': <django.db.models.fields.DateTimeField: create_date>, 'modify_date': <django.db.models.fields.DateTimeField: modify_date>, 'creator_info': <django.db.models.fields.CharField: creator_info>, 'modifier_info': <django.db.models.fields.CharField: modifier_info>, 'trash': <django.db.models.fields.BooleanField: trash>, 'weight_type': <django.db.models.fields.CharField: weight_type>, 'birthdate': <django.db.models.fields.DateTimeField: birthdate>, 'gender': <django.db.models.fields.IntegerField: gender>}, relations={'created_by': RelationInfo(model_field=<django.db.models.fields.related.ForeignKey: created_by>, related_model=<class 'apps.authentication.models.User'>, to_many=False, to_field=None, has_through_model=False, reverse=False), 'modified_by': RelationInfo(model_field=<django.db.models.fields.related.ForeignKey: modified_by>, related_model=<class 'apps.authentication.models.User'>, to_many=False, to_field=None, has_through_model=False, reverse=False), 'herd': RelationInfo(model_field=<django.db.models.fields.related.ForeignKey: herd>, related_model=<class 'apps.herd.models.Herd'>, to_many=False, to_field='id', has_through_model=False, reverse=False), 'tag': RelationInfo(model_field=<django.db.models.fields.related.ForeignKey: tag>, related_model=<class 'apps.tag.models.Tag'>, to_many=False, to_field='id', has_through_model=False, reverse=False), 'type': RelationInfo(model_field=<django.db.models.fields.related.ForeignKey: type>, related_model=<class 'apps.livestock.models.LiveStockType'>, to_many=False, to_field='id', has_through_model=False, reverse=False), 'use_type': RelationInfo(model_field=<django.db.models.fields.related.ForeignKey: use_type>, related_model=<class 'apps.livestock.models.LiveStockUseType'>, to_many=False, to_field='id', has_through_model=False, reverse=False), '\u2026 <trimmed 4321 bytes string> | \n
| many_to_many | \n{} | \n
| relation_info | \nRelationInfo(model_field=<django.db.models.fields.related.ForeignKey: species>, related_model=<class 'apps.livestock.models.LiveStockSpecies'>, to_many=False, to_field='id', has_through_model=False, reverse=False) | \n
| self | \nLiveStockSerializer(context={'request': <rest_framework.request.Request: POST '/livestock/web/api/v1/livestock_species/'>, 'format': None, 'view': <apps.livestock.web.api.v1.api.LiveStockViewSet object>}, data={'name': '\u06af\u0648\u0633\u0641\u0646\u062f'}):\n id = IntegerField(label='ID', read_only=True)\n create_date = DateTimeField(read_only=True)\n modify_date = DateTimeField(read_only=True)\n creator_info = CharField(allow_null=True, max_length=100, required=False)\n modifier_info = CharField(allow_null=True, max_length=100, required=False)\n trash = BooleanField(required=False)\n weight_type = ChoiceField(choices=[('L', 'Light'), ('H', 'Heavy')], required=False)\n birthdate = DateTimeField(allow_null=True, required=False)\n gender = ChoiceField(choices=[(1, 'male'), (2, 'female')], required=False, validators=[<django.core.validators.MinValueValidator object>, <django.core.validators.MaxValueValidator object>])\n created_by = PrimaryKeyRelatedField(allow_null=True, queryset=User.objects.all(), required=False)\n modified_by = PrimaryKeyRelatedField(allow_null=True, queryset=User.objects.all(), required=False)\n herd = PrimaryKeyRelatedField(allow_null=True, queryset=Herd.objects.all(), required=False)\n tag = PrimaryKeyRelatedField(allow_null=True, queryset=Tag.objects.all(), required=False)\n type = PrimaryKeyRelatedField(allow_null=True, queryset=LiveStockType.objects.all(), required=False)\n use_type = PrimaryKeyRelatedField(allow_null=True, queryset=LiveStockUseType.objects.all(), required=False)\n species = PrimaryKeyRelatedField(allow_null=True, queryset=LiveStockSpecies.objects.all(), required=False) | \n
| validated_data | \n{} | \n
D:\\Software\\env\\Lib\\site-packages\\django\\db\\models\\manager.py, line 87, in manager_method\n \n\n \n return []
@classmethod
def _get_queryset_methods(cls, queryset_class):
def create_method(name, method):
@wraps(method)
def manager_method(self, *args, **kwargs):
return getattr(self.get_queryset(), name)(*args, **kwargs)\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\u2026
return manager_method
new_methods = {}for name, method in inspect.getmembers(
queryset_class, predicate=inspect.isfunction
| Variable | \nValue | \n
|---|---|
| args | \n() | \n
| kwargs | \n{} | \n
| name | \n'create' | \n
| self | \n<django.db.models.manager.Manager object at 0x000001C39D00D010> | \n
D:\\Software\\env\\Lib\\site-packages\\django\\db\\models\\query.py, line 677, in create\n \n\n \n raise ValueError(
"The following fields do not exist in this model: %s"
% ", ".join(reverse_one_to_one_fields)
)
obj = self.model(**kwargs)
self._for_write = True
obj.save(force_insert=True, using=self.db)\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\u2026
return obj
async def acreate(self, **kwargs):
return await sync_to_async(self.create)(**kwargs)
def _prepare_for_bulk_create(self, objs):
| Variable | \nValue | \n
|---|---|
| kwargs | \n{} | \n
| obj | \nError in formatting: AttributeError: 'NoneType' object has no attribute 'name' | \n
| reverse_one_to_one_fields | \nfrozenset() | \n
| self | \n<QuerySet []> | \n
D:\\Project\\Rasaddam_Backend\\apps\\livestock\\models.py, line 87, in save\n \n\n \n )
gender = models.IntegerField(choices=gender_type, default=1)
def __str__(self):
return f'{self.type.name}-{self.species.name}'def save(self, *args, **kwargs):
super(LiveStock, self).save(*args, **kwargs)\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\u2026
| Variable | \nValue | \n
|---|---|
| __class__ | \n<class 'apps.livestock.models.LiveStock'> | \n
| args | \n() | \n
| kwargs | \n{'force_insert': True, 'using': 'default'} | \n
| self | \nError in formatting: AttributeError: 'NoneType' object has no attribute 'name' | \n
D:\\Project\\Rasaddam_Backend\\apps\\core\\models.py, line 37, in save\n \n\n \n def save(self, *args, **kwargs):
user = get_current_user() # get user object
self.modified_by = user
if not self.creator_info:
self.created_by = user
self.creator_info = user.first_name + ' ' + user.last_name + '-' + user.national_code
self.modifier_info = user.first_name + ' ' + user.last_name + '-' + user.national_code
super(BaseModel, self).save(*args, **kwargs)\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\u2026
class MobileTest(BaseModel):
latitude = models.DecimalField(max_digits=22, decimal_places=16)
longitude = models.DecimalField(max_digits=22, decimal_places=16)
count = models.IntegerField(default=0)
| Variable | \nValue | \n
|---|---|
| __class__ | \n<class 'apps.core.models.BaseModel'> | \n
| args | \n() | \n
| kwargs | \n{'force_insert': True, 'using': 'default'} | \n
| self | \nError in formatting: AttributeError: 'NoneType' object has no attribute 'name' | \n
| user | \n<User: moji \u0630\u0648\u0627\u0644\u0641\u0642\u0627\u0631\u06cc-None> | \n
D:\\Software\\env\\Lib\\site-packages\\django\\db\\models\\base.py, line 814, in save\n \n\n \n for field in self._meta.concrete_fields:
if not field.primary_key and not hasattr(field, "through"):
field_names.add(field.attname)
loaded_fields = field_names.difference(deferred_fields)
if loaded_fields:
update_fields = frozenset(loaded_fields)
self.save_base(\n ^\u2026
using=using,
force_insert=force_insert,
force_update=force_update,
update_fields=update_fields,
)
| Variable | \nValue | \n
|---|---|
| deferred_fields | \nset() | \n
| force_insert | \nTrue | \n
| force_update | \nFalse | \n
| self | \nError in formatting: AttributeError: 'NoneType' object has no attribute 'name' | \n
| update_fields | \nNone | \n
| using | \n'default' | \n
D:\\Software\\env\\Lib\\site-packages\\django\\db\\models\\base.py, line 901, in save_base\n \n\n \n parent_inserted = False
if not raw:
# Validate force insert only when parents are inserted.
force_insert = self._validate_force_insert(force_insert)
parent_inserted = self._save_parents(
cls, using, update_fields, force_insert
)
updated = self._save_table(\n\u2026
raw,
cls,
force_insert or parent_inserted,
force_update,
using,
update_fields,
| Variable | \nValue | \n
|---|---|
| cls | \n<class 'apps.livestock.models.LiveStock'> | \n
| context_manager | \n<contextlib._GeneratorContextManager object at 0x000001C39D4BFCE0> | \n
| force_insert | \n(<class 'apps.livestock.models.LiveStock'>,) | \n
| force_update | \nFalse | \n
| meta | \n<Options for LiveStock> | \n
| origin | \n<class 'apps.livestock.models.LiveStock'> | \n
| parent_inserted | \nFalse | \n
| raw | \nFalse | \n
| self | \nError in formatting: AttributeError: 'NoneType' object has no attribute 'name' | \n
| update_fields | \nNone | \n
| using | \n'default' | \n
D:\\Software\\env\\Lib\\site-packages\\django\\db\\models\\base.py, line 1059, in _save_table\n \n\n \n )
fields = [
f
for f in meta.local_concrete_fields
if not f.generated and (pk_set or f is not meta.auto_field)
]
returning_fields = meta.db_returning_fields
results = self._do_insert(\n\u2026
cls._base_manager, using, fields, returning_fields, raw
)
if results:
for value, field in zip(results[0], returning_fields):
setattr(self, field.attname, value)
return updated
| Variable | \nValue | \n
|---|---|
| cls | \n<class 'apps.livestock.models.LiveStock'> | \n
| fields | \n[<django.db.models.fields.DateTimeField: create_date>,\n <django.db.models.fields.DateTimeField: modify_date>,\n <django.db.models.fields.related.ForeignKey: created_by>,\n <django.db.models.fields.related.ForeignKey: modified_by>,\n <django.db.models.fields.CharField: creator_info>,\n <django.db.models.fields.CharField: modifier_info>,\n <django.db.models.fields.BooleanField: trash>,\n <django.db.models.fields.related.ForeignKey: herd>,\n <django.db.models.fields.related.ForeignKey: tag>,\n <django.db.models.fields.related.ForeignKey: type>,\n <django.db.models.fields.related.ForeignKey: use_type>,\n <django.db.models.fields.CharField: weight_type>,\n <django.db.models.fields.related.ForeignKey: species>,\n <django.db.models.fields.DateTimeField: birthdate>,\n <django.db.models.fields.IntegerField: gender>] | \n
| force_insert | \n(<class 'apps.livestock.models.LiveStock'>,) | \n
| force_update | \nFalse | \n
| meta | \n<Options for LiveStock> | \n
| non_pks | \n[<django.db.models.fields.DateTimeField: create_date>,\n <django.db.models.fields.DateTimeField: modify_date>,\n <django.db.models.fields.related.ForeignKey: created_by>,\n <django.db.models.fields.related.ForeignKey: modified_by>,\n <django.db.models.fields.CharField: creator_info>,\n <django.db.models.fields.CharField: modifier_info>,\n <django.db.models.fields.BooleanField: trash>,\n <django.db.models.fields.related.ForeignKey: herd>,\n <django.db.models.fields.related.ForeignKey: tag>,\n <django.db.models.fields.related.ForeignKey: type>,\n <django.db.models.fields.related.ForeignKey: use_type>,\n <django.db.models.fields.CharField: weight_type>,\n <django.db.models.fields.related.ForeignKey: species>,\n <django.db.models.fields.DateTimeField: birthdate>,\n <django.db.models.fields.IntegerField: gender>] | \n
| pk_set | \nFalse | \n
| pk_val | \nNone | \n
| raw | \nFalse | \n
| returning_fields | \n[<django.db.models.fields.BigAutoField: id>] | \n
| self | \nError in formatting: AttributeError: 'NoneType' object has no attribute 'name' | \n
| update_fields | \nNone | \n
| updated | \nFalse | \n
| using | \n'default' | \n
D:\\Software\\env\\Lib\\site-packages\\django\\db\\models\\base.py, line 1100, in _do_insert\n \n\n \n return filtered._update(values) > 0
def _do_insert(self, manager, using, fields, returning_fields, raw):
"""
Do an INSERT. If returning_fields is defined then this method should
return the newly created data for the model.
"""
return manager._insert(\n\u2026
[self],
fields=fields,
returning_fields=returning_fields,
using=using,
raw=raw,
)
| Variable | \nValue | \n
|---|---|
| fields | \n[<django.db.models.fields.DateTimeField: create_date>,\n <django.db.models.fields.DateTimeField: modify_date>,\n <django.db.models.fields.related.ForeignKey: created_by>,\n <django.db.models.fields.related.ForeignKey: modified_by>,\n <django.db.models.fields.CharField: creator_info>,\n <django.db.models.fields.CharField: modifier_info>,\n <django.db.models.fields.BooleanField: trash>,\n <django.db.models.fields.related.ForeignKey: herd>,\n <django.db.models.fields.related.ForeignKey: tag>,\n <django.db.models.fields.related.ForeignKey: type>,\n <django.db.models.fields.related.ForeignKey: use_type>,\n <django.db.models.fields.CharField: weight_type>,\n <django.db.models.fields.related.ForeignKey: species>,\n <django.db.models.fields.DateTimeField: birthdate>,\n <django.db.models.fields.IntegerField: gender>] | \n
| manager | \n<django.db.models.manager.Manager object at 0x000001C39D151820> | \n
| raw | \nFalse | \n
| returning_fields | \n[<django.db.models.fields.BigAutoField: id>] | \n
| self | \nError in formatting: AttributeError: 'NoneType' object has no attribute 'name' | \n
| using | \n'default' | \n
D:\\Software\\env\\Lib\\site-packages\\django\\db\\models\\manager.py, line 87, in manager_method\n \n\n \n return []
@classmethod
def _get_queryset_methods(cls, queryset_class):
def create_method(name, method):
@wraps(method)
def manager_method(self, *args, **kwargs):
return getattr(self.get_queryset(), name)(*args, **kwargs)\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\u2026
return manager_method
new_methods = {}for name, method in inspect.getmembers(
queryset_class, predicate=inspect.isfunction
| Variable | \nValue | \n
|---|---|
| args | \nError in formatting: AttributeError: 'NoneType' object has no attribute 'name' | \n
| kwargs | \n{'fields': [<django.db.models.fields.DateTimeField: create_date>,\n <django.db.models.fields.DateTimeField: modify_date>,\n <django.db.models.fields.related.ForeignKey: created_by>,\n <django.db.models.fields.related.ForeignKey: modified_by>,\n <django.db.models.fields.CharField: creator_info>,\n <django.db.models.fields.CharField: modifier_info>,\n <django.db.models.fields.BooleanField: trash>,\n <django.db.models.fields.related.ForeignKey: herd>,\n <django.db.models.fields.related.ForeignKey: tag>,\n <django.db.models.fields.related.ForeignKey: type>,\n <django.db.models.fields.related.ForeignKey: use_type>,\n <django.db.models.fields.CharField: weight_type>,\n <django.db.models.fields.related.ForeignKey: species>,\n <django.db.models.fields.DateTimeField: birthdate>,\n <django.db.models.fields.IntegerField: gender>],\n 'raw': False,\n 'returning_fields': [<django.db.models.fields.BigAutoField: id>],\n 'using': 'default'} | \n
| name | \n'_insert' | \n
| self | \n<django.db.models.manager.Manager object at 0x000001C39D151820> | \n
D:\\Software\\env\\Lib\\site-packages\\django\\db\\models\\query.py, line 1845, in _insert\n \n\n \n query = sql.InsertQuery(
self.model,
on_conflict=on_conflict,
update_fields=update_fields,
unique_fields=unique_fields,
)
query.insert_values(fields, objs, raw=raw)
return query.get_compiler(using=using).execute_sql(returning_fields)\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\u2026
_insert.alters_data = True
_insert.queryset_only = False
def _batched_insert(
self,
| Variable | \nValue | \n
|---|---|
| fields | \n[<django.db.models.fields.DateTimeField: create_date>,\n <django.db.models.fields.DateTimeField: modify_date>,\n <django.db.models.fields.related.ForeignKey: created_by>,\n <django.db.models.fields.related.ForeignKey: modified_by>,\n <django.db.models.fields.CharField: creator_info>,\n <django.db.models.fields.CharField: modifier_info>,\n <django.db.models.fields.BooleanField: trash>,\n <django.db.models.fields.related.ForeignKey: herd>,\n <django.db.models.fields.related.ForeignKey: tag>,\n <django.db.models.fields.related.ForeignKey: type>,\n <django.db.models.fields.related.ForeignKey: use_type>,\n <django.db.models.fields.CharField: weight_type>,\n <django.db.models.fields.related.ForeignKey: species>,\n <django.db.models.fields.DateTimeField: birthdate>,\n <django.db.models.fields.IntegerField: gender>] | \n
| objs | \nError in formatting: AttributeError: 'NoneType' object has no attribute 'name' | \n
| on_conflict | \nNone | \n
| query | \n<django.db.models.sql.subqueries.InsertQuery object at 0x000001C39D4BFD40> | \n
| raw | \nFalse | \n
| returning_fields | \n[<django.db.models.fields.BigAutoField: id>] | \n
| self | \n<QuerySet []> | \n
| unique_fields | \nNone | \n
| update_fields | \nNone | \n
| using | \n'default' | \n
D:\\Software\\env\\Lib\\site-packages\\django\\db\\models\\sql\\compiler.py, line 1822, in execute_sql\n \n\n \n and len(self.query.objs) != 1
and not self.connection.features.can_return_rows_from_bulk_insert
)
opts = self.query.get_meta()
self.returning_fields = returning_fields
with self.connection.cursor() as cursor:
for sql, params in self.as_sql():
cursor.execute(sql, params)\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^\u2026
if not self.returning_fields:
return []
if (
self.connection.features.can_return_rows_from_bulk_insert
and len(self.query.objs) > 1
):
| Variable | \nValue | \n
|---|---|
| cursor | \n<django.db.backends.postgresql.base.CursorDebugWrapper object at 0x000001C39D4BFDD0> | \n
| opts | \n<Options for LiveStock> | \n
| params | \n(datetime.datetime(2025, 5, 24, 7, 27, 42, 502517, tzinfo=datetime.timezone.utc),\n datetime.datetime(2025, 5, 24, 7, 27, 42, 502517, tzinfo=datetime.timezone.utc),\n 2,\n 2,\n '\u0645\u062c\u062a\u0628\u06cc \u0630\u0648\u0627\u0644\u0641\u0642\u0627\u0631\u06cc-4061080598',\n '\u0645\u062c\u062a\u0628\u06cc \u0630\u0648\u0627\u0644\u0641\u0642\u0627\u0631\u06cc-4061080598',\n False,\n None,\n None,\n None,\n None,\n 'L',\n None,\n None,\n 1) | \n
| returning_fields | \n[<django.db.models.fields.BigAutoField: id>] | \n
| self | \n<SQLInsertCompiler model=LiveStock connection=<DatabaseWrapper vendor='postgresql' alias='default'> using='default'> | \n
| sql | \n('INSERT INTO "livestock_livestock" ("create_date", "modify_date", '\n '"created_by_id", "modified_by_id", "creator_info", "modifier_info", "trash", '\n '"herd_id", "tag_id", "type_id", "use_type_id", "weight_type", "species_id", '\n '"birthdate", "gender") VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, '\n '%s, %s, %s, %s) RETURNING "livestock_livestock"."id"') | \n
D:\\Software\\env\\Lib\\site-packages\\django\\db\\backends\\utils.py, line 122, in execute\n \n\n \n class CursorDebugWrapper(CursorWrapper):
# XXX callproc isn't instrumented at this time.
def execute(self, sql, params=None):
with self.debug_sql(sql, params, use_last_executed_query=True):
return super().execute(sql, params)\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^\u2026
def executemany(self, sql, param_list):
with self.debug_sql(sql, param_list, many=True):
return super().executemany(sql, param_list)
@contextmanager
| Variable | \nValue | \n
|---|---|
| __class__ | \n<class 'django.db.backends.utils.CursorDebugWrapper'> | \n
| params | \n(datetime.datetime(2025, 5, 24, 7, 27, 42, 502517, tzinfo=datetime.timezone.utc),\n datetime.datetime(2025, 5, 24, 7, 27, 42, 502517, tzinfo=datetime.timezone.utc),\n 2,\n 2,\n '\u0645\u062c\u062a\u0628\u06cc \u0630\u0648\u0627\u0644\u0641\u0642\u0627\u0631\u06cc-4061080598',\n '\u0645\u062c\u062a\u0628\u06cc \u0630\u0648\u0627\u0644\u0641\u0642\u0627\u0631\u06cc-4061080598',\n False,\n None,\n None,\n None,\n None,\n 'L',\n None,\n None,\n 1) | \n
| self | \n<django.db.backends.postgresql.base.CursorDebugWrapper object at 0x000001C39D4BFDD0> | \n
| sql | \n('INSERT INTO "livestock_livestock" ("create_date", "modify_date", '\n '"created_by_id", "modified_by_id", "creator_info", "modifier_info", "trash", '\n '"herd_id", "tag_id", "type_id", "use_type_id", "weight_type", "species_id", '\n '"birthdate", "gender") VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, '\n '%s, %s, %s, %s) RETURNING "livestock_livestock"."id"') | \n
D:\\Software\\env\\Lib\\site-packages\\django\\db\\backends\\utils.py, line 79, in execute\n \n\n \n elif kparams is None:
return self.cursor.callproc(procname, params)
else:
params = params or ()
return self.cursor.callproc(procname, params, kparams)
def execute(self, sql, params=None):
return self._execute_with_wrappers(\n\u2026
sql, params, many=False, executor=self._execute
)
def executemany(self, sql, param_list):
return self._execute_with_wrappers(
sql, param_list, many=True, executor=self._executemany
| Variable | \nValue | \n
|---|---|
| params | \n(datetime.datetime(2025, 5, 24, 7, 27, 42, 502517, tzinfo=datetime.timezone.utc),\n datetime.datetime(2025, 5, 24, 7, 27, 42, 502517, tzinfo=datetime.timezone.utc),\n 2,\n 2,\n '\u0645\u062c\u062a\u0628\u06cc \u0630\u0648\u0627\u0644\u0641\u0642\u0627\u0631\u06cc-4061080598',\n '\u0645\u062c\u062a\u0628\u06cc \u0630\u0648\u0627\u0644\u0641\u0642\u0627\u0631\u06cc-4061080598',\n False,\n None,\n None,\n None,\n None,\n 'L',\n None,\n None,\n 1) | \n
| self | \n<django.db.backends.postgresql.base.CursorDebugWrapper object at 0x000001C39D4BFDD0> | \n
| sql | \n('INSERT INTO "livestock_livestock" ("create_date", "modify_date", '\n '"created_by_id", "modified_by_id", "creator_info", "modifier_info", "trash", '\n '"herd_id", "tag_id", "type_id", "use_type_id", "weight_type", "species_id", '\n '"birthdate", "gender") VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, '\n '%s, %s, %s, %s) RETURNING "livestock_livestock"."id"') | \n
D:\\Software\\env\\Lib\\site-packages\\django\\db\\backends\\utils.py, line 92, in _execute_with_wrappers\n \n\n \n sql, param_list, many=True, executor=self._executemany
)
def _execute_with_wrappers(self, sql, params, many, executor):
context = {"connection": self.db, "cursor": self}for wrapper in reversed(self.db.execute_wrappers):
executor = functools.partial(wrapper, executor)
return executor(sql, params, many, context)\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\u2026
def _execute(self, sql, params, *ignored_wrapper_args):
# Raise a warning during app initialization (stored_app_configs is only
# ever set during testing).
if not apps.ready and not apps.stored_app_configs:
warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
| Variable | \nValue | \n
|---|---|
| context | \n{'connection': <DatabaseWrapper vendor='postgresql' alias='default'>,\n 'cursor': <django.db.backends.postgresql.base.CursorDebugWrapper object at 0x000001C39D4BFDD0>} | \n
| executor | \n<bound method CursorWrapper._execute of <django.db.backends.postgresql.base.CursorDebugWrapper object at 0x000001C39D4BFDD0>> | \n
| many | \nFalse | \n
| params | \n(datetime.datetime(2025, 5, 24, 7, 27, 42, 502517, tzinfo=datetime.timezone.utc),\n datetime.datetime(2025, 5, 24, 7, 27, 42, 502517, tzinfo=datetime.timezone.utc),\n 2,\n 2,\n '\u0645\u062c\u062a\u0628\u06cc \u0630\u0648\u0627\u0644\u0641\u0642\u0627\u0631\u06cc-4061080598',\n '\u0645\u062c\u062a\u0628\u06cc \u0630\u0648\u0627\u0644\u0641\u0642\u0627\u0631\u06cc-4061080598',\n False,\n None,\n None,\n None,\n None,\n 'L',\n None,\n None,\n 1) | \n
| self | \n<django.db.backends.postgresql.base.CursorDebugWrapper object at 0x000001C39D4BFDD0> | \n
| sql | \n('INSERT INTO "livestock_livestock" ("create_date", "modify_date", '\n '"created_by_id", "modified_by_id", "creator_info", "modifier_info", "trash", '\n '"herd_id", "tag_id", "type_id", "use_type_id", "weight_type", "species_id", '\n '"birthdate", "gender") VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, '\n '%s, %s, %s, %s) RETURNING "livestock_livestock"."id"') | \n
D:\\Software\\env\\Lib\\site-packages\\django\\db\\backends\\utils.py, line 100, in _execute\n \n\n \n def _execute(self, sql, params, *ignored_wrapper_args):
# Raise a warning during app initialization (stored_app_configs is only
# ever set during testing).
if not apps.ready and not apps.stored_app_configs:
warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
self.db.validate_no_broken_transaction()
with self.db.wrap_database_errors:\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\u2026
if params is None:
# params default might be backend specific.
return self.cursor.execute(sql)
else:
return self.cursor.execute(sql, params)
| Variable | \nValue | \n
|---|---|
| ignored_wrapper_args | \n(False,\n {'connection': <DatabaseWrapper vendor='postgresql' alias='default'>,\n 'cursor': <django.db.backends.postgresql.base.CursorDebugWrapper object at 0x000001C39D4BFDD0>}) | \n
| params | \n(datetime.datetime(2025, 5, 24, 7, 27, 42, 502517, tzinfo=datetime.timezone.utc),\n datetime.datetime(2025, 5, 24, 7, 27, 42, 502517, tzinfo=datetime.timezone.utc),\n 2,\n 2,\n '\u0645\u062c\u062a\u0628\u06cc \u0630\u0648\u0627\u0644\u0641\u0642\u0627\u0631\u06cc-4061080598',\n '\u0645\u062c\u062a\u0628\u06cc \u0630\u0648\u0627\u0644\u0641\u0642\u0627\u0631\u06cc-4061080598',\n False,\n None,\n None,\n None,\n None,\n 'L',\n None,\n None,\n 1) | \n
| self | \n<django.db.backends.postgresql.base.CursorDebugWrapper object at 0x000001C39D4BFDD0> | \n
| sql | \n('INSERT INTO "livestock_livestock" ("create_date", "modify_date", '\n '"created_by_id", "modified_by_id", "creator_info", "modifier_info", "trash", '\n '"herd_id", "tag_id", "type_id", "use_type_id", "weight_type", "species_id", '\n '"birthdate", "gender") VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, '\n '%s, %s, %s, %s) RETURNING "livestock_livestock"."id"') | \n
D:\\Software\\env\\Lib\\site-packages\\django\\db\\utils.py, line 91, in __exit__\n \n\n \n db_exc_type = getattr(self.wrapper.Database, dj_exc_type.__name__)
if issubclass(exc_type, db_exc_type):
dj_exc_value = dj_exc_type(*exc_value.args)
# Only set the 'errors_occurred' flag for errors that may make
# the connection unusable.
if dj_exc_type not in (DataError, IntegrityError):
self.wrapper.errors_occurred = True
raise dj_exc_value.with_traceback(traceback) from exc_value\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\u2026
def __call__(self, func):
# Note that we are intentionally not using @wraps here for performance
# reasons. Refs #21109.
def inner(*args, **kwargs):
with self:
| Variable | \nValue | \n
|---|---|
| db_exc_type | \n<class 'psycopg2.IntegrityError'> | \n
| dj_exc_type | \n<class 'django.db.utils.IntegrityError'> | \n
| dj_exc_value | \nIntegrityError('null value in column "age_by_day" of relation "livestock_livestock" violates not-null constraint\\nDETAIL: Failing row contains (1, 2025-05-24 07:27:42.502517+00, 2025-05-24 07:27:42.502517+00, f, null, 1, null, null, null, null, null, L, null, null, null, 2, 2, \u0645\u062c\u062a\u0628\u06cc \u0630\u0648\u0627\u0644\u0641\u0642\u0627\u0631\u06cc-4061080598, \u0645\u062c\u062a\u0628\u06cc \u0630\u0648\u0627\u0644\u0641\u0642\u0627\u0631\u06cc-4061080598).\\n') | \n
| exc_type | \n<class 'psycopg2.errors.NotNullViolation'> | \n
| exc_value | \nNotNullViolation('null value in column "age_by_day" of relation "livestock_livestock" violates not-null constraint\\nDETAIL: Failing row contains (1, 2025-05-24 07:27:42.502517+00, 2025-05-24 07:27:42.502517+00, f, null, 1, null, null, null, null, null, L, null, null, null, 2, 2, \u0645\u062c\u062a\u0628\u06cc \u0630\u0648\u0627\u0644\u0641\u0642\u0627\u0631\u06cc-4061080598, \u0645\u062c\u062a\u0628\u06cc \u0630\u0648\u0627\u0644\u0641\u0642\u0627\u0631\u06cc-4061080598).\\n') | \n
| self | \n<django.db.utils.DatabaseErrorWrapper object at 0x000001C39D31AE10> | \n
| traceback | \n<traceback object at 0x000001C39D4D1EC0> | \n
D:\\Software\\env\\Lib\\site-packages\\django\\db\\backends\\utils.py, line 105, in _execute\n \n\n \n warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
self.db.validate_no_broken_transaction()
with self.db.wrap_database_errors:
if params is None:
# params default might be backend specific.
return self.cursor.execute(sql)
else:
return self.cursor.execute(sql, params)\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\u2026
def _executemany(self, sql, param_list, *ignored_wrapper_args):
# Raise a warning during app initialization (stored_app_configs is only
# ever set during testing).
if not apps.ready and not apps.stored_app_configs:
warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
| Variable | \nValue | \n
|---|---|
| ignored_wrapper_args | \n(False,\n {'connection': <DatabaseWrapper vendor='postgresql' alias='default'>,\n 'cursor': <django.db.backends.postgresql.base.CursorDebugWrapper object at 0x000001C39D4BFDD0>}) | \n
| params | \n(datetime.datetime(2025, 5, 24, 7, 27, 42, 502517, tzinfo=datetime.timezone.utc),\n datetime.datetime(2025, 5, 24, 7, 27, 42, 502517, tzinfo=datetime.timezone.utc),\n 2,\n 2,\n '\u0645\u062c\u062a\u0628\u06cc \u0630\u0648\u0627\u0644\u0641\u0642\u0627\u0631\u06cc-4061080598',\n '\u0645\u062c\u062a\u0628\u06cc \u0630\u0648\u0627\u0644\u0641\u0642\u0627\u0631\u06cc-4061080598',\n False,\n None,\n None,\n None,\n None,\n 'L',\n None,\n None,\n 1) | \n
| self | \n<django.db.backends.postgresql.base.CursorDebugWrapper object at 0x000001C39D4BFDD0> | \n
| sql | \n('INSERT INTO "livestock_livestock" ("create_date", "modify_date", '\n '"created_by_id", "modified_by_id", "creator_info", "modifier_info", "trash", '\n '"herd_id", "tag_id", "type_id", "use_type_id", "weight_type", "species_id", '\n '"birthdate", "gender") VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, '\n '%s, %s, %s, %s) RETURNING "livestock_livestock"."id"') | \n
moji \u0630\u0648\u0627\u0644\u0641\u0642\u0627\u0631\u06cc-None
\n \n\nNo GET data
\n \n\nNo POST data
\n \n\nNo FILES data
\n \n\nNo cookie data
\n \n\n| Variable | \nValue | \n
|---|---|
| ALLUSERSPROFILE | \n'C:\\\\ProgramData' | \n
| APPCODE_VM_OPTIONS | \n'C:\\\\ja-netfilter\\\\vmoptions\\\\appcode.vmoptions' | \n
| APPDATA | \n'C:\\\\Users\\\\Housh8\\\\AppData\\\\Roaming' | \n
| CLION_VM_OPTIONS | \n'C:\\\\ja-netfilter\\\\vmoptions\\\\clion.vmoptions' | \n
| COMMONPROGRAMFILES | \n'C:\\\\Program Files\\\\Common Files' | \n
| COMMONPROGRAMFILES(X86) | \n'C:\\\\Program Files (x86)\\\\Common Files' | \n
| COMMONPROGRAMW6432 | \n'C:\\\\Program Files\\\\Common Files' | \n
| COMPUTERNAME | \n'DESKTOP-77GDGLN' | \n
| COMSPEC | \n'C:\\\\Windows\\\\system32\\\\cmd.exe' | \n
| CONTENT_LENGTH | \n'32' | \n
| CONTENT_TYPE | \n'application/json' | \n
| DATAGRIP_VM_OPTIONS | \n'C:\\\\ja-netfilter\\\\vmoptions\\\\datagrip.vmoptions' | \n
| DATASPELL_VM_OPTIONS | \n'C:\\\\ja-netfilter\\\\vmoptions\\\\dataspell.vmoptions' | \n
| DEVECOSTUDIO_VM_OPTIONS | \n'C:\\\\ja-netfilter\\\\vmoptions\\\\devecostudio.vmoptions' | \n
| DJANGO_SETTINGS_MODULE | \n'Rasaddam_Backend.settings' | \n
| DRIVERDATA | \n'C:\\\\Windows\\\\System32\\\\Drivers\\\\DriverData' | \n
| EFC_9236 | \n'1' | \n
| FPS_BROWSER_APP_PROFILE_STRING | \n'Internet Explorer' | \n
| FPS_BROWSER_USER_PROFILE_STRING | \n'Default' | \n
| GATEWAY_INTERFACE | \n'CGI/1.1' | \n
| GATEWAY_VM_OPTIONS | \n'C:\\\\ja-netfilter\\\\vmoptions\\\\gateway.vmoptions' | \n
| GOLAND_VM_OPTIONS | \n'C:\\\\ja-netfilter\\\\vmoptions\\\\goland.vmoptions' | \n
| HOMEDRIVE | \n'C:' | \n
| HOMEPATH | \n'\\\\Users\\\\Housh8' | \n
| HTTP_ACCEPT | \n'*/*' | \n
| HTTP_ACCEPT_ENCODING | \n'gzip, deflate, br' | \n
| HTTP_AUTHORIZATION | \n('Bearer '\n 'eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNzQ4MTUwNTc5LCJpYXQiOjE3NDgwNjQxNzksImp0aSI6ImY1NjA3MGQ5M2Q3ZTQ2OWY5YjUzZTBiNWU0Yzg4ZGI4IiwidXNlcl9pZCI6MiwibmFtZSI6Im1vamkiLCJtb2JpbGUiOiIwOTM4OTY1NyIsIm5hdGlvbmFsX2NvZGUiOiI0MDYxMDgwNTk4In0.FKrYU38zStPGnrzgoDzvAd5EAiCDuoAFrHPXncAknok') | \n
| HTTP_CACHE_CONTROL | \n'no-cache' | \n
| HTTP_CONNECTION | \n'keep-alive' | \n
| HTTP_HOST | \n'127.0.0.1:8000' | \n
| HTTP_POSTMAN_TOKEN | \n'********************' | \n
| HTTP_USER_AGENT | \n'PostmanRuntime/7.44.0' | \n
| IDEA_INITIAL_DIRECTORY | \n'C:\\\\Users\\\\Housh8\\\\Desktop' | \n
| IDEA_VM_OPTIONS | \n'C:\\\\ja-netfilter\\\\vmoptions\\\\idea.vmoptions' | \n
| JETBRAINSCLIENT_VM_OPTIONS | \n'C:\\\\ja-netfilter\\\\vmoptions\\\\jetbrainsclient.vmoptions' | \n
| JETBRAINS_CLIENT_VM_OPTIONS | \n'C:\\\\ja-netfilter\\\\vmoptions\\\\jetbrains_client.vmoptions' | \n
| LOCALAPPDATA | \n'C:\\\\Users\\\\Housh8\\\\AppData\\\\Local' | \n
| LOGONSERVER | \n'\\\\\\\\DESKTOP-77GDGLN' | \n
| NODEJS | \n'C:\\\\ProgramData\\\\Microsoft\\\\Windows\\\\Start Menu\\\\Programs\\\\Node.js' | \n
| NUMBER_OF_PROCESSORS | \n'4' | \n
| NVM_HOME | \n'C:\\\\Users\\\\Housh8\\\\AppData\\\\Local\\\\nvm' | \n
| NVM_SYMLINK | \n'C:\\\\nvm4w\\\\nodejs' | \n
| ONEDRIVE | \n'C:\\\\Users\\\\Housh8\\\\OneDrive' | \n
| OS | \n'Windows_NT' | \n
| PATH | \n('D:\\\\Software\\\\env\\\\Scripts;C:\\\\Windows\\\\system32;C:\\\\Windows;C:\\\\Windows\\\\System32\\\\Wbem;C:\\\\Windows\\\\System32\\\\WindowsPowerShell\\\\v1.0\\\\;C:\\\\Windows\\\\System32\\\\OpenSSH\\\\;C:\\\\Users\\\\Housh8\\\\AppData\\\\Local\\\\nvm;C:\\\\nvm4w\\\\nodejs;C:\\\\Program '\n 'Files\\\\Git\\\\cmd;C:\\\\Program '\n 'Files\\\\nodejs\\\\;D:\\\\Software\\\\python-3.12.0\\\\Scripts\\\\;D:\\\\Software\\\\python-3.12.0\\\\;D:\\\\Software\\\\python\\\\Scripts\\\\;D:\\\\Software\\\\python\\\\;C:\\\\Users\\\\Housh8\\\\AppData\\\\Local\\\\Programs\\\\Python\\\\Launcher\\\\;C:\\\\Users\\\\Housh8\\\\AppData\\\\Local\\\\Microsoft\\\\WindowsApps;C:\\\\Users\\\\Housh8\\\\AppData\\\\Local\\\\Programs\\\\Microsoft '\n 'VS '\n 'Code\\\\bin;C:\\\\Users\\\\Housh8\\\\AppData\\\\Local\\\\nvm;C:\\\\nvm4w\\\\nodejs;C:\\\\Users\\\\Housh8\\\\AppData\\\\Roaming\\\\npm') | \n
| PATHEXT | \n'.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC' | \n
| PATH_INFO | \n'/livestock/web/api/v1/livestock_species/' | \n
| PHPSTORM_VM_OPTIONS | \n'C:\\\\ja-netfilter\\\\vmoptions\\\\phpstorm.vmoptions' | \n
| PROCESSOR_ARCHITECTURE | \n'AMD64' | \n
| PROCESSOR_IDENTIFIER | \n'Intel64 Family 6 Model 158 Stepping 9, GenuineIntel' | \n
| PROCESSOR_LEVEL | \n'6' | \n
| PROCESSOR_REVISION | \n'9e09' | \n
| PROGRAMDATA | \n'C:\\\\ProgramData' | \n
| PROGRAMFILES | \n'C:\\\\Program Files' | \n
| PROGRAMFILES(X86) | \n'C:\\\\Program Files (x86)' | \n
| PROGRAMW6432 | \n'C:\\\\Program Files' | \n
| PROMPT | \n'(env) $P$G' | \n
| PSMODULEPATH | \n('C:\\\\Program '\n 'Files\\\\WindowsPowerShell\\\\Modules;C:\\\\Windows\\\\system32\\\\WindowsPowerShell\\\\v1.0\\\\Modules') | \n
| PUBLIC | \n'C:\\\\Users\\\\Public' | \n
| PYCHARM_VM_OPTIONS | \n'C:\\\\ja-netfilter\\\\vmoptions\\\\pycharm.vmoptions' | \n
| QUERY_STRING | \n'' | \n
| REMOTE_ADDR | \n'127.0.0.1' | \n
| REMOTE_HOST | \n'' | \n
| REQUEST_METHOD | \n'POST' | \n
| RIDER_VM_OPTIONS | \n'C:\\\\ja-netfilter\\\\vmoptions\\\\rider.vmoptions' | \n
| RUBYMINE_VM_OPTIONS | \n'C:\\\\ja-netfilter\\\\vmoptions\\\\rubymine.vmoptions' | \n
| RUN_MAIN | \n'true' | \n
| RUSTROVER_VM_OPTIONS | \n'C:\\\\ja-netfilter\\\\vmoptions\\\\RustRover.vmoptions' | \n
| SCRIPT_NAME | \n'' | \n
| SERVER_NAME | \n'DESKTOP-77GDGLN' | \n
| SERVER_PORT | \n'8000' | \n
| SERVER_PROTOCOL | \n'HTTP/1.1' | \n
| SERVER_SOFTWARE | \n'WSGIServer/0.2' | \n
| SESSIONNAME | \n'Console' | \n
| STUDIO_VM_OPTIONS | \n'C:\\\\ja-netfilter\\\\vmoptions\\\\studio.vmoptions' | \n
| SYSTEMDRIVE | \n'C:' | \n
| SYSTEMROOT | \n'C:\\\\Windows' | \n
| TEMP | \n'C:\\\\Users\\\\Housh8\\\\AppData\\\\Local\\\\Temp' | \n
| TERMINAL_EMULATOR | \n'JetBrains-JediTerm' | \n
| TERM_SESSION_ID | \n'eb03bff4-2cc9-43d8-baa8-b91cff85c929' | \n
| TMP | \n'C:\\\\Users\\\\Housh8\\\\AppData\\\\Local\\\\Temp' | \n
| USERDOMAIN | \n'DESKTOP-77GDGLN' | \n
| USERDOMAIN_ROAMINGPROFILE | \n'DESKTOP-77GDGLN' | \n
| USERNAME | \n'Housh8' | \n
| USERPROFILE | \n'C:\\\\Users\\\\Housh8' | \n
| VIRTUAL_ENV | \n'D:\\\\Software\\\\env' | \n
| WEBIDE_VM_OPTIONS | \n'C:\\\\ja-netfilter\\\\vmoptions\\\\webide.vmoptions' | \n
| WEBSTORM_VM_OPTIONS | \n'C:\\\\ja-netfilter\\\\vmoptions\\\\webstorm.vmoptions' | \n
| WINDIR | \n'C:\\\\Windows' | \n
| _OLD_VIRTUAL_PATH | \n('C:\\\\Windows\\\\system32;C:\\\\Windows;C:\\\\Windows\\\\System32\\\\Wbem;C:\\\\Windows\\\\System32\\\\WindowsPowerShell\\\\v1.0\\\\;C:\\\\Windows\\\\System32\\\\OpenSSH\\\\;C:\\\\Users\\\\Housh8\\\\AppData\\\\Local\\\\nvm;C:\\\\nvm4w\\\\nodejs;C:\\\\Program '\n 'Files\\\\Git\\\\cmd;C:\\\\Program '\n 'Files\\\\nodejs\\\\;D:\\\\Software\\\\python-3.12.0\\\\Scripts\\\\;D:\\\\Software\\\\python-3.12.0\\\\;D:\\\\Software\\\\python\\\\Scripts\\\\;D:\\\\Software\\\\python\\\\;C:\\\\Users\\\\Housh8\\\\AppData\\\\Local\\\\Programs\\\\Python\\\\Launcher\\\\;C:\\\\Users\\\\Housh8\\\\AppData\\\\Local\\\\Microsoft\\\\WindowsApps;C:\\\\Users\\\\Housh8\\\\AppData\\\\Local\\\\Programs\\\\Microsoft '\n 'VS '\n 'Code\\\\bin;C:\\\\Users\\\\Housh8\\\\AppData\\\\Local\\\\nvm;C:\\\\nvm4w\\\\nodejs;C:\\\\Users\\\\Housh8\\\\AppData\\\\Roaming\\\\npm') | \n
| _OLD_VIRTUAL_PROMPT | \n'$P$G' | \n
| __INTELLIJ_COMMAND_HISTFILE__ | \n'C:\\\\Users\\\\Housh8\\\\AppData\\\\Local\\\\JetBrains\\\\PyCharm2021.3\\\\terminal\\\\history\\\\Rasaddam_Backend-history2' | \n
| wsgi.errors | \n<_io.TextIOWrapper name='<stderr>' mode='w' encoding='utf-8'> | \n
| wsgi.file_wrapper | \n<class 'wsgiref.util.FileWrapper'> | \n
| wsgi.input | \n<django.core.handlers.wsgi.LimitedStream object at 0x000001C39D47F430> | \n
| wsgi.multiprocess | \nFalse | \n
| wsgi.multithread | \nTrue | \n
| wsgi.run_once | \nFalse | \n
| wsgi.url_scheme | \n'http' | \n
| wsgi.version | \n(1, 0) | \n
Rasaddam_Backend.settings| Setting | \nValue | \n
|---|---|
| ABSOLUTE_URL_OVERRIDES | \n{} | \n
| ADMINS | \n[] | \n
| ALLOWED_HOSTS | \n['localhost', '127.0.0.1', 'https://rasadyar.net/', 'https://localhost:9200'] | \n
| APPEND_SLASH | \nTrue | \n
| AUTHENTICATION_BACKENDS | \n['django.contrib.auth.backends.ModelBackend'] | \n
| AUTH_PASSWORD_VALIDATORS | \n'********************' | \n
| AUTH_USER_MODEL | \n'authentication.User' | \n
| BASE_DIR | \nWindowsPath('D:/Project/Rasaddam_Backend') | \n
| CACHES | \n{'default': {'BACKEND': 'django_redis.cache.RedisCache',\n 'KEY_PREFIX': '********************',\n 'LOCATION': 'redis://:ydnW4hwzuDRYcTX3FWCHgQ1f@apo.liara.cloud:33740/0',\n 'OPTIONS': {'CLIENT_CLASS': 'django_redis.client.DefaultClient'}},\n 'memcache': {'BACKEND': 'django.core.cache.backends.memcached.PyMemcacheCache',\n 'LOCATION': '127.0.0.1:11211'}} | \n
| CACHE_MIDDLEWARE_ALIAS | \n'default' | \n
| CACHE_MIDDLEWARE_KEY_PREFIX | \n'********************' | \n
| CACHE_MIDDLEWARE_SECONDS | \n600 | \n
| CORS_ALLOWED_ORIGINS | \n('http://localhost:8080',\n 'http://127.0.0.1:8080',\n 'http://127.0.0.1:3000',\n 'http://localhost:3000',\n 'https://rasadyar.net') | \n
| CORS_ORIGIN_ALLOW_ALL | \nTrue | \n
| CORS_ORIGIN_WHITELIST | \n('http://localhost:8080',\n 'http://127.0.0.1:8080',\n 'http://127.0.0.1:3000',\n 'http://localhost:3000',\n 'https://rasadyar.net') | \n
| CSRF_COOKIE_AGE | \n31449600 | \n
| CSRF_COOKIE_DOMAIN | \nNone | \n
| CSRF_COOKIE_HTTPONLY | \nFalse | \n
| CSRF_COOKIE_NAME | \n'csrftoken' | \n
| CSRF_COOKIE_PATH | \n'/' | \n
| CSRF_COOKIE_SAMESITE | \n'Lax' | \n
| CSRF_COOKIE_SECURE | \nFalse | \n
| CSRF_FAILURE_VIEW | \n'django.views.csrf.csrf_failure' | \n
| CSRF_HEADER_NAME | \n'HTTP_X_CSRFTOKEN' | \n
| CSRF_TRUSTED_ORIGINS | \n[] | \n
| CSRF_USE_SESSIONS | \nFalse | \n
| DATABASES | \n{'default': {'ATOMIC_REQUESTS': False,\n 'AUTOCOMMIT': True,\n 'CONN_HEALTH_CHECKS': False,\n 'CONN_MAX_AGE': 0,\n 'ENGINE': 'django.db.backends.postgresql_psycopg2',\n 'HOST': 'monte-rosa.liara.cloud',\n 'NAME': 'postgres',\n 'OPTIONS': {},\n 'PASSWORD': '********************',\n 'PORT': '32718',\n 'TEST': {'CHARSET': None,\n 'COLLATION': None,\n 'MIGRATE': True,\n 'MIRROR': None,\n 'NAME': None},\n 'TIME_ZONE': None,\n 'USER': 'root'}} | \n
| DATABASE_ROUTERS | \n[] | \n
| DATA_UPLOAD_MAX_MEMORY_SIZE | \n50242880 | \n
| DATA_UPLOAD_MAX_NUMBER_FIELDS | \n1000 | \n
| DATA_UPLOAD_MAX_NUMBER_FILES | \n100 | \n
| DATETIME_FORMAT | \n'%Y-%m-%d %H:%M:%S' | \n
| DATETIME_INPUT_FORMATS | \n['%Y-%m-%d %H:%M:%S',\n '%Y-%m-%d %H:%M:%S.%f',\n '%Y-%m-%d %H:%M',\n '%m/%d/%Y %H:%M:%S',\n '%m/%d/%Y %H:%M:%S.%f',\n '%m/%d/%Y %H:%M',\n '%m/%d/%y %H:%M:%S',\n '%m/%d/%y %H:%M:%S.%f',\n '%m/%d/%y %H:%M'] | \n
| DATE_FORMAT | \n'N j, Y' | \n
| DATE_INPUT_FORMATS | \n['%Y-%m-%d',\n '%m/%d/%Y',\n '%m/%d/%y',\n '%b %d %Y',\n '%b %d, %Y',\n '%d %b %Y',\n '%d %b, %Y',\n '%B %d %Y',\n '%B %d, %Y',\n '%d %B %Y',\n '%d %B, %Y'] | \n
| DEBUG | \nTrue | \n
| DEBUG_PROPAGATE_EXCEPTIONS | \nFalse | \n
| DECIMAL_SEPARATOR | \n'.' | \n
| DEFAULT_AUTO_FIELD | \n'django.db.models.BigAutoField' | \n
| DEFAULT_CHARSET | \n'utf-8' | \n
| DEFAULT_EXCEPTION_REPORTER | \n'django.views.debug.ExceptionReporter' | \n
| DEFAULT_EXCEPTION_REPORTER_FILTER | \n'django.views.debug.SafeExceptionReporterFilter' | \n
| DEFAULT_FILE_STORAGE | \n'django.core.files.storage.FileSystemStorage' | \n
| DEFAULT_FROM_EMAIL | \n'webmaster@localhost' | \n
| DEFAULT_INDEX_TABLESPACE | \n'' | \n
| DEFAULT_TABLESPACE | \n'' | \n
| DISALLOWED_USER_AGENTS | \n[] | \n
| ELASTICSEARCH_DSL | \n{'default': {'hosts': 'http://monte-rosa.liara.cloud:31157',\n 'http_auth': ('elastic', 'uYkiQ860vLW8DIbWpNjqtz2B')}} | \n
| EMAIL_BACKEND | \n'django.core.mail.backends.smtp.EmailBackend' | \n
| EMAIL_HOST | \n'localhost' | \n
| EMAIL_HOST_PASSWORD | \n'********************' | \n
| EMAIL_HOST_USER | \n'' | \n
| EMAIL_PORT | \n25 | \n
| EMAIL_SSL_CERTFILE | \nNone | \n
| EMAIL_SSL_KEYFILE | \n'********************' | \n
| EMAIL_SUBJECT_PREFIX | \n'[Django] ' | \n
| EMAIL_TIMEOUT | \nNone | \n
| EMAIL_USE_LOCALTIME | \nFalse | \n
| EMAIL_USE_SSL | \nFalse | \n
| EMAIL_USE_TLS | \nFalse | \n
| FILE_UPLOAD_DIRECTORY_PERMISSIONS | \nNone | \n
| FILE_UPLOAD_HANDLERS | \n['django.core.files.uploadhandler.MemoryFileUploadHandler',\n 'django.core.files.uploadhandler.TemporaryFileUploadHandler'] | \n
| FILE_UPLOAD_MAX_MEMORY_SIZE | \n2621440 | \n
| FILE_UPLOAD_PERMISSIONS | \n420 | \n
| FILE_UPLOAD_TEMP_DIR | \nNone | \n
| FIRST_DAY_OF_WEEK | \n0 | \n
| FIXTURE_DIRS | \n[] | \n
| FORCE_SCRIPT_NAME | \nNone | \n
| FORMAT_MODULE_PATH | \nNone | \n
| FORMS_URLFIELD_ASSUME_HTTPS | \nFalse | \n
| FORM_RENDERER | \n'django.forms.renderers.DjangoTemplates' | \n
| IGNORABLE_404_URLS | \n[] | \n
| INSTALLED_APPS | \n['django.contrib.admin',\n 'django.contrib.auth',\n 'django.contrib.contenttypes',\n 'django.contrib.sessions',\n 'django.contrib.messages',\n 'django.contrib.staticfiles',\n 'django_elasticsearch_dsl',\n 'django_elasticsearch_dsl_drf',\n 'rest_framework',\n 'corsheaders',\n 'rest_framework_simplejwt',\n 'rest_framework_simplejwt.token_blacklist',\n 'apps.authentication.apps.AuthenticationConfig',\n 'apps.authorization.apps.AuthorizationConfig',\n 'apps.captcha_app.apps.CaptchaAppConfig',\n 'apps.core.apps.CoreConfig',\n 'apps.herd.apps.HerdAppConfig',\n 'apps.livestock.apps.LivestockConfig',\n 'apps.pos_machine.apps.PosMachineConfig',\n 'apps.tag.apps.TagConfig',\n 'apps.warehouse.apps.WarehouseConfig',\n 'apps.search.apps.SearchConfig',\n 'apps.log.apps.LogConfig',\n 'rest_captcha',\n 'captcha',\n 'drf_yasg'] | \n
| INTERNAL_IPS | \n[] | \n
| LANGUAGES | \n[('af', 'Afrikaans'),\n ('ar', 'Arabic'),\n ('ar-dz', 'Algerian Arabic'),\n ('ast', 'Asturian'),\n ('az', 'Azerbaijani'),\n ('bg', 'Bulgarian'),\n ('be', 'Belarusian'),\n ('bn', 'Bengali'),\n ('br', 'Breton'),\n ('bs', 'Bosnian'),\n ('ca', 'Catalan'),\n ('ckb', 'Central Kurdish (Sorani)'),\n ('cs', 'Czech'),\n ('cy', 'Welsh'),\n ('da', 'Danish'),\n ('de', 'German'),\n ('dsb', 'Lower Sorbian'),\n ('el', 'Greek'),\n ('en', 'English'),\n ('en-au', 'Australian English'),\n ('en-gb', 'British English'),\n ('eo', 'Esperanto'),\n ('es', 'Spanish'),\n ('es-ar', 'Argentinian Spanish'),\n ('es-co', 'Colombian Spanish'),\n ('es-mx', 'Mexican Spanish'),\n ('es-ni', 'Nicaraguan Spanish'),\n ('es-ve', 'Venezuelan Spanish'),\n ('et', 'Estonian'),\n ('eu', 'Basque'),\n ('fa', 'Persian'),\n ('fi', 'Finnish'),\n ('fr', 'French'),\n ('fy', 'Frisian'),\n ('ga', 'Irish'),\n ('gd', 'Scottish Gaelic'),\n ('gl', 'Galician'),\n ('he', 'Hebrew'),\n ('hi', 'Hindi'),\n ('hr', 'Croatian'),\n ('hsb', 'Upper Sorbian'),\n ('hu', 'Hungarian'),\n ('hy', 'Armenian'),\n ('ia', 'Interlingua'),\n ('id', 'Indonesian'),\n ('ig', 'Igbo'),\n ('io', 'Ido'),\n ('is', 'Icelandic'),\n ('it', 'Italian'),\n ('ja', 'Japanese'),\n ('ka', 'Georgian'),\n ('kab', 'Kabyle'),\n ('kk', 'Kazakh'),\n ('km', 'Khmer'),\n ('kn', 'Kannada'),\n ('ko', 'Korean'),\n ('ky', 'Kyrgyz'),\n ('lb', 'Luxembourgish'),\n ('lt', 'Lithuanian'),\n ('lv', 'Latvian'),\n ('mk', 'Macedonian'),\n ('ml', 'Malayalam'),\n ('mn', 'Mongolian'),\n ('mr', 'Marathi'),\n ('ms', 'Malay'),\n ('my', 'Burmese'),\n ('nb', 'Norwegian Bokm\u00e5l'),\n ('ne', 'Nepali'),\n ('nl', 'Dutch'),\n ('nn', 'Norwegian Nynorsk'),\n ('os', 'Ossetic'),\n ('pa', 'Punjabi'),\n ('pl', 'Polish'),\n ('pt', 'Portuguese'),\n ('pt-br', 'Brazilian Portuguese'),\n ('ro', 'Romanian'),\n ('ru', 'Russian'),\n ('sk', 'Slovak'),\n ('sl', 'Slovenian'),\n ('sq', 'Albanian'),\n ('sr', 'Serbian'),\n ('sr-latn', 'Serbian Latin'),\n ('sv', 'Swedish'),\n ('sw', 'Swahili'),\n ('ta', 'Tamil'),\n ('te', 'Telugu'),\n ('tg', 'Tajik'),\n ('th', 'Thai'),\n ('tk', 'Turkmen'),\n ('tr', 'Turkish'),\n ('tt', 'Tatar'),\n ('udm', 'Udmurt'),\n ('ug', 'Uyghur'),\n ('uk', 'Ukrainian'),\n ('ur', 'Urdu'),\n ('uz', 'Uzbek'),\n ('vi', 'Vietnamese'),\n ('zh-hans', 'Simplified Chinese'),\n ('zh-hant', 'Traditional Chinese')] | \n
| LANGUAGES_BIDI | \n['he', 'ar', 'ar-dz', 'ckb', 'fa', 'ug', 'ur'] | \n
| LANGUAGE_CODE | \n'en-us' | \n
| LANGUAGE_COOKIE_AGE | \nNone | \n
| LANGUAGE_COOKIE_DOMAIN | \nNone | \n
| LANGUAGE_COOKIE_HTTPONLY | \nFalse | \n
| LANGUAGE_COOKIE_NAME | \n'django_language' | \n
| LANGUAGE_COOKIE_PATH | \n'/' | \n
| LANGUAGE_COOKIE_SAMESITE | \nNone | \n
| LANGUAGE_COOKIE_SECURE | \nFalse | \n
| LOCALE_PATHS | \n[] | \n
| LOGGING | \n{} | \n
| LOGGING_CONFIG | \n'logging.config.dictConfig' | \n
| LOGIN_REDIRECT_URL | \n'/accounts/profile/' | \n
| LOGIN_URL | \n'rest_framework:login' | \n
| LOGOUT_REDIRECT_URL | \nNone | \n
| LOGOUT_URL | \n'rest_framework:logout' | \n
| MANAGERS | \n[] | \n
| MEDIA_ROOT | \n'' | \n
| MEDIA_URL | \n'/' | \n
| MESSAGE_STORAGE | \n'django.contrib.messages.storage.fallback.FallbackStorage' | \n
| MIDDLEWARE | \n['django.middleware.security.SecurityMiddleware',\n 'django.contrib.sessions.middleware.SessionMiddleware',\n 'django.middleware.common.CommonMiddleware',\n 'django.middleware.csrf.CsrfViewMiddleware',\n 'django.contrib.auth.middleware.AuthenticationMiddleware',\n 'django.contrib.messages.middleware.MessageMiddleware',\n 'django.middleware.clickjacking.XFrameOptionsMiddleware',\n 'crum.CurrentRequestUserMiddleware',\n 'apps.log.middlewares.SaveLog'] | \n
| MIGRATION_MODULES | \n{} | \n
| MONGODB_DATABASES | \n{'default': {'host': '', 'name': 'mongodb', 'tz_aware': True}} | \n
| MONTH_DAY_FORMAT | \n'F j' | \n
| NUMBER_GROUPING | \n0 | \n
| PASSWORD_HASHERS | \n'********************' | \n
| PASSWORD_RESET_TIMEOUT | \n'********************' | \n
| PREPEND_WWW | \nFalse | \n
| REST_CAPTCHA | \n{'CAPTCHA_BACKGROUND_COLOR': '#ffffff',\n 'CAPTCHA_CACHE': 'default',\n 'CAPTCHA_CACHE_KEY': '********************',\n 'CAPTCHA_FONT_SIZE': 35,\n 'CAPTCHA_FOREGROUND_COLOR': '#000000',\n 'CAPTCHA_IMAGE_SIZE': (90, 20),\n 'CAPTCHA_LENGTH': 6,\n 'CAPTCHA_LETTER_ROTATION': (-35, 35),\n 'CAPTCHA_TIMEOUT': 300,\n 'FILTER_FUNCTION': 'rest_captcha.captcha.filter_default',\n 'NOISE_FUNCTION': 'apps.captcha_app.api.v1.serializers.noise_default'} | \n
| REST_FRAMEWORK | \n{'DEFAULT_AUTHENTICATION_CLASSES': ('rest_framework_simplejwt.authentication.JWTAuthentication',\n 'rest_framework.authentication.SessionAuthentication',\n 'rest_framework.authentication.BasicAuthentication'),\n 'DEFAULT_PAGINATION_CLASS': 'rest_framework.pagination.LimitOffsetPagination',\n 'DEFAULT_PERMISSION_CLASSES': ('rest_framework.permissions.IsAuthenticated',),\n 'DEFAULT_SCHEMA_CLASS': 'rest_framework.schemas.coreapi.AutoSchema',\n 'PAGE_SIZE': 25} | \n
| ROOT_URLCONF | \n'Rasaddam_Backend.urls' | \n
| SECRET_KEY | \n'********************' | \n
| SECRET_KEY_FALLBACKS | \n'********************' | \n
| SECURE_CONTENT_TYPE_NOSNIFF | \nTrue | \n
| SECURE_CROSS_ORIGIN_OPENER_POLICY | \n'same-origin' | \n
| SECURE_HSTS_INCLUDE_SUBDOMAINS | \nFalse | \n
| SECURE_HSTS_PRELOAD | \nFalse | \n
| SECURE_HSTS_SECONDS | \n0 | \n
| SECURE_PROXY_SSL_HEADER | \n('HTTP_X_FORWARDED_PROTO', 'https') | \n
| SECURE_REDIRECT_EXEMPT | \n[] | \n
| SECURE_REFERRER_POLICY | \n'same-origin' | \n
| SECURE_SSL_HOST | \nNone | \n
| SECURE_SSL_REDIRECT | \nFalse | \n
| SERVER_EMAIL | \n'root@localhost' | \n
| SESSION_CACHE_ALIAS | \n'default' | \n
| SESSION_COOKIE_AGE | \n1209600 | \n
| SESSION_COOKIE_DOMAIN | \nNone | \n
| SESSION_COOKIE_HTTPONLY | \nTrue | \n
| SESSION_COOKIE_NAME | \n'sessionid' | \n
| SESSION_COOKIE_PATH | \n'/' | \n
| SESSION_COOKIE_SAMESITE | \n'Lax' | \n
| SESSION_COOKIE_SECURE | \nFalse | \n
| SESSION_ENGINE | \n'django.contrib.sessions.backends.db' | \n
| SESSION_EXPIRE_AT_BROWSER_CLOSE | \nFalse | \n
| SESSION_FILE_PATH | \nNone | \n
| SESSION_SAVE_EVERY_REQUEST | \nFalse | \n
| SESSION_SERIALIZER | \n'django.contrib.sessions.serializers.JSONSerializer' | \n
| SETTINGS_MODULE | \n'Rasaddam_Backend.settings' | \n
| SHORT_DATETIME_FORMAT | \n'm/d/Y P' | \n
| SHORT_DATE_FORMAT | \n'm/d/Y' | \n
| SIGNING_BACKEND | \n'django.core.signing.TimestampSigner' | \n
| SILENCED_SYSTEM_CHECKS | \n[] | \n
| SIMPLE_JWT | \n{'ACCESS_TOKEN_LIFETIME': '********************',\n 'ALGORITHM': 'HS256',\n 'AUDIENCE': None,\n 'AUTH_HEADER_NAME': 'HTTP_AUTHORIZATION',\n 'AUTH_HEADER_TYPES': ('Bearer',),\n 'AUTH_TOKEN_CLASSES': '********************',\n 'BLACKLIST_AFTER_ROTATION': False,\n 'ISSUER': None,\n 'JSON_ENCODER': None,\n 'JTI_CLAIM': 'jti',\n 'JWK_URL': None,\n 'LEEWAY': 0,\n 'REFRESH_TOKEN_LIFETIME': '********************',\n 'ROTATE_REFRESH_TOKENS': '********************',\n 'SIGNING_KEY': '********************',\n 'SLIDING_TOKEN_LIFETIME': '********************',\n 'SLIDING_TOKEN_OBTAIN_SERIALIZER': '********************',\n 'SLIDING_TOKEN_REFRESH_EXP_CLAIM': '********************',\n 'SLIDING_TOKEN_REFRESH_LIFETIME': '********************',\n 'SLIDING_TOKEN_REFRESH_SERIALIZER': '********************',\n 'TOKEN_BLACKLIST_SERIALIZER': '********************',\n 'TOKEN_OBTAIN_SERIALIZER': '********************',\n 'TOKEN_REFRESH_SERIALIZER': '********************',\n 'TOKEN_TYPE_CLAIM': '********************',\n 'TOKEN_USER_CLASS': '********************',\n 'TOKEN_VERIFY_SERIALIZER': '********************',\n 'UPDATE_LAST_LOGIN': False,\n 'USER_AUTHENTICATION_RULE': 'rest_framework_simplejwt.authentication.default_user_authentication_rule',\n 'USER_ID_CLAIM': 'user_id',\n 'USER_ID_FIELD': 'id',\n 'VERIFYING_KEY': '********************'} | \n
| STATICFILES_DIRS | \n[] | \n
| STATICFILES_FINDERS | \n['django.contrib.staticfiles.finders.FileSystemFinder',\n 'django.contrib.staticfiles.finders.AppDirectoriesFinder'] | \n
| STATICFILES_STORAGE | \n'django.contrib.staticfiles.storage.StaticFilesStorage' | \n
| STATIC_ROOT | \nNone | \n
| STATIC_URL | \n'/static/' | \n
| STORAGES | \n{'default': {'BACKEND': 'django.core.files.storage.FileSystemStorage'},\n 'staticfiles': {'BACKEND': 'django.contrib.staticfiles.storage.StaticFilesStorage'}} | \n
| SWAGGER_SETTINGS | \n{'SECURITY_DEFINITIONS': {'Bearer': {'in': 'header',\n 'name': 'Authorization',\n 'type': 'apiKey'},\n 'basic': {'type': 'basic'}},\n 'USE_SESSION_AUTH': True} | \n
| TEMPLATES | \n[{'APP_DIRS': True,\n 'BACKEND': 'django.template.backends.django.DjangoTemplates',\n 'DIRS': [],\n 'OPTIONS': {'context_processors': ['django.template.context_processors.request',\n 'django.contrib.auth.context_processors.auth',\n 'django.contrib.messages.context_processors.messages']}}] | \n
| TEST_NON_SERIALIZED_APPS | \n[] | \n
| TEST_RUNNER | \n'django.test.runner.DiscoverRunner' | \n
| THOUSAND_SEPARATOR | \n',' | \n
| TIME_FORMAT | \n'P' | \n
| TIME_INPUT_FORMATS | \n['%H:%M:%S', '%H:%M:%S.%f', '%H:%M'] | \n
| TIME_ZONE | \n'UTC' | \n
| USE_I18N | \nTrue | \n
| USE_THOUSAND_SEPARATOR | \nFalse | \n
| USE_TZ | \nTrue | \n
| USE_X_FORWARDED_HOST | \nFalse | \n
| USE_X_FORWARDED_PORT | \nFalse | \n
| WSGI_APPLICATION | \n'Rasaddam_Backend.wsgi.application' | \n
| X_FRAME_OPTIONS | \n'DENY' | \n
| YEAR_MONTH_FORMAT | \n'F Y' | \n
\n You\u2019re seeing this error because you have DEBUG = True in your\n Django settings file. Change that to False, and Django will\n display a standard page generated by the handler for this status code.\n
| Request Method: | \nPOST | \n
|---|---|
| Request URL: | \nhttp://127.0.0.1:8000/tag/web/api/v1/tag/ | \n
\n Using the URLconf defined in Rasaddam_Backend.urls,\n Django tried these URL patterns, in this order:\n
\n \n The current path, tag/web/api/v1/tag/,\n \n didn\u2019t match any of these.\n
\n You\u2019re seeing this error because you have DEBUG = True in\n your Django settings file. Change that to False, and Django\n will display a standard 404 page.\n
| Request Method: | \nPOST | \n
|---|---|
| Request URL: | \nhttp://127.0.0.1:8000/tag/web/api/v1/tag/ | \n
\n Using the URLconf defined in Rasaddam_Backend.urls,\n Django tried these URL patterns, in this order:\n
\n \n The current path, tag/web/api/v1/tag/,\n \n didn\u2019t match any of these.\n
\n You\u2019re seeing this error because you have DEBUG = True in\n your Django settings file. Change that to False, and Django\n will display a standard 404 page.\n
| Request Method: | \nPOST | \n
|---|---|
| Request URL: | \nhttp://127.0.0.1:8000/tag/web/api/v1/tag/ | \n
\n Using the URLconf defined in Rasaddam_Backend.urls,\n Django tried these URL patterns, in this order:\n
\n \n The current path, tag/web/api/v1/tag/,\n \n didn\u2019t match any of these.\n
\n You\u2019re seeing this error because you have DEBUG = True in\n your Django settings file. Change that to False, and Django\n will display a standard 404 page.\n
null value in column "age_by_day" of relation "livestock_livestock" violates not-null constraint\nDETAIL: Failing row contains (2, 2025-05-24 09:12:29.157289+00, 2025-05-24 09:12:29.157289+00, f, 2025-05-13 08:56:51.64436+00, 2, 1, 1, null, null, null, L, 1, 1, 1, 2, 2, \u0645\u062c\u062a\u0628\u06cc \u0630\u0648\u0627\u0644\u0641\u0642\u0627\u0631\u06cc-4061080598, \u0645\u062c\u062a\u0628\u06cc \u0630\u0648\u0627\u0644\u0641\u0642\u0627\u0631\u06cc-4061080598).\n\n
| Request Method: | \nPOST | \n
|---|---|
| Request URL: | \nhttp://127.0.0.1:8000/livestock/web/api/v1/livestock/ | \n
| Django Version: | \n5.0 | \n
| Exception Type: | \nIntegrityError | \n
| Exception Value: | \nnull value in column "age_by_day" of relation "livestock_livestock" violates not-null constraint\nDETAIL: Failing row contains (2, 2025-05-24 09:12:29.157289+00, 2025-05-24 09:12:29.157289+00, f, 2025-05-13 08:56:51.64436+00, 2, 1, 1, null, null, null, L, 1, 1, 1, 2, 2, \u0645\u062c\u062a\u0628\u06cc \u0630\u0648\u0627\u0644\u0641\u0642\u0627\u0631\u06cc-4061080598, \u0645\u062c\u062a\u0628\u06cc \u0630\u0648\u0627\u0644\u0641\u0642\u0627\u0631\u06cc-4061080598).\n | \n
| Exception Location: | \nD:\\Software\\env\\Lib\\site-packages\\django\\db\\backends\\utils.py, line 105, in _execute | \n
| Raised during: | \napps.livestock.web.api.v1.api.LiveStockViewSet | \n
| Python Executable: | \nD:\\Software\\env\\Scripts\\python.exe | \n
| Python Version: | \n3.12.0 | \n
| Python Path: | \n['D:\\\\Project\\\\Rasaddam_Backend',\n 'D:\\\\Software\\\\python-3.12.0\\\\python312.zip',\n 'D:\\\\Software\\\\python-3.12.0\\\\DLLs',\n 'D:\\\\Software\\\\python-3.12.0\\\\Lib',\n 'D:\\\\Software\\\\python-3.12.0',\n 'D:\\\\Software\\\\env',\n 'D:\\\\Software\\\\env\\\\Lib\\\\site-packages',\n 'D:\\\\Software\\\\env\\\\Lib\\\\site-packages\\\\setuptools\\\\_vendor'] | \n
| Server time: | \nSat, 24 May 2025 09:12:29 +0000 | \n
D:\\Software\\env\\Lib\\site-packages\\django\\db\\backends\\utils.py, line 105, in _execute\n \n\n \n warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
self.db.validate_no_broken_transaction()
with self.db.wrap_database_errors:
if params is None:
# params default might be backend specific.
return self.cursor.execute(sql)
else:
return self.cursor.execute(sql, params)\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\u2026
def _executemany(self, sql, param_list, *ignored_wrapper_args):
# Raise a warning during app initialization (stored_app_configs is only
# ever set during testing).
if not apps.ready and not apps.stored_app_configs:
warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
| Variable | \nValue | \n
|---|---|
| ignored_wrapper_args | \n(False,\n {'connection': <DatabaseWrapper vendor='postgresql' alias='default'>,\n 'cursor': <django.db.backends.postgresql.base.CursorDebugWrapper object at 0x000002D902B83CB0>}) | \n
| params | \n(datetime.datetime(2025, 5, 24, 9, 12, 29, 157289, tzinfo=datetime.timezone.utc),\n datetime.datetime(2025, 5, 24, 9, 12, 29, 157289, tzinfo=datetime.timezone.utc),\n 2,\n 2,\n '\u0645\u062c\u062a\u0628\u06cc \u0630\u0648\u0627\u0644\u0641\u0642\u0627\u0631\u06cc-4061080598',\n '\u0645\u062c\u062a\u0628\u06cc \u0630\u0648\u0627\u0644\u0641\u0642\u0627\u0631\u06cc-4061080598',\n False,\n 1,\n 1,\n 1,\n 1,\n 'L',\n 1,\n datetime.datetime(2025, 5, 13, 8, 56, 51, 644360, tzinfo=zoneinfo.ZoneInfo(key='UTC')),\n 2) | \n
| self | \n<django.db.backends.postgresql.base.CursorDebugWrapper object at 0x000002D902B83CB0> | \n
| sql | \n('INSERT INTO "livestock_livestock" ("create_date", "modify_date", '\n '"created_by_id", "modified_by_id", "creator_info", "modifier_info", "trash", '\n '"herd_id", "tag_id", "type_id", "use_type_id", "weight_type", "species_id", '\n '"birthdate", "gender") VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, '\n '%s, %s, %s, %s) RETURNING "livestock_livestock"."id"') | \n
D:\\Software\\env\\Lib\\site-packages\\django\\core\\handlers\\exception.py, line 55, in inner\n \n\n \n return inner
else:
@wraps(get_response)
def inner(request):
try:
response = get_response(request)\n ^^^^^^^^^^^^^^^^^^^^^\u2026
except Exception as exc:
response = response_for_exception(request, exc)
return response
return inner
| Variable | \nValue | \n
|---|---|
| exc | \nIntegrityError('null value in column "age_by_day" of relation "livestock_livestock" violates not-null constraint\\nDETAIL: Failing row contains (2, 2025-05-24 09:12:29.157289+00, 2025-05-24 09:12:29.157289+00, f, 2025-05-13 08:56:51.64436+00, 2, 1, 1, null, null, null, L, 1, 1, 1, 2, 2, \u0645\u062c\u062a\u0628\u06cc \u0630\u0648\u0627\u0644\u0641\u0642\u0627\u0631\u06cc-4061080598, \u0645\u062c\u062a\u0628\u06cc \u0630\u0648\u0627\u0644\u0641\u0642\u0627\u0631\u06cc-4061080598).\\n') | \n
| get_response | \n<bound method BaseHandler._get_response of <django.core.handlers.wsgi.WSGIHandler object at 0x000002D97EE33080>> | \n
| request | \n<WSGIRequest: POST '/livestock/web/api/v1/livestock/'> | \n
D:\\Software\\env\\Lib\\site-packages\\django\\core\\handlers\\base.py, line 197, in _get_response\n \n\n \n if response is None:
wrapped_callback = self.make_view_atomic(callback)
# If it is an asynchronous view, run it in a subthread.
if iscoroutinefunction(wrapped_callback):
wrapped_callback = async_to_sync(wrapped_callback)
try:
response = wrapped_callback(request, *callback_args, **callback_kwargs)\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\u2026
except Exception as e:
response = self.process_exception_by_middleware(e, request)
if response is None:
raise
# Complain if the view returned None (a common error).
| Variable | \nValue | \n
|---|---|
| callback | \n<function LiveStockViewSet at 0x000002D9027FA700> | \n
| callback_args | \n() | \n
| callback_kwargs | \n{} | \n
| middleware_method | \n<bound method CsrfViewMiddleware.process_view of <CsrfViewMiddleware get_response=convert_exception_to_response.<locals>.inner>> | \n
| request | \n<WSGIRequest: POST '/livestock/web/api/v1/livestock/'> | \n
| response | \nNone | \n
| self | \n<django.core.handlers.wsgi.WSGIHandler object at 0x000002D97EE33080> | \n
| wrapped_callback | \n<function LiveStockViewSet at 0x000002D9027FA700> | \n
D:\\Software\\env\\Lib\\site-packages\\django\\views\\decorators\\csrf.py, line 65, in _view_wrapper\n \n\n \n async def _view_wrapper(request, *args, **kwargs):
return await view_func(request, *args, **kwargs)
else:
def _view_wrapper(request, *args, **kwargs):
return view_func(request, *args, **kwargs)\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\u2026
_view_wrapper.csrf_exempt = True
return wraps(view_func)(_view_wrapper)
| Variable | \nValue | \n
|---|---|
| args | \n() | \n
| kwargs | \n{} | \n
| request | \n<WSGIRequest: POST '/livestock/web/api/v1/livestock/'> | \n
| view_func | \n<function LiveStockViewSet at 0x000002D9027FA660> | \n
D:\\Software\\env\\Lib\\site-packages\\rest_framework\\viewsets.py, line 125, in view\n \n\n \n setattr(self, method, handler)
self.request = request
self.args = args
self.kwargs = kwargs
# And continue as usual
return self.dispatch(request, *args, **kwargs)\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\u2026
# take name and docstring from class
update_wrapper(view, cls, updated=())
# and possible attributes set by decorators
# like csrf_exempt from dispatch
| Variable | \nValue | \n
|---|---|
| action | \n'list' | \n
| actions | \n{'get': 'list', 'head': 'list', 'post': 'create'} | \n
| args | \n() | \n
| cls | \n<class 'apps.livestock.web.api.v1.api.LiveStockViewSet'> | \n
| handler | \n<bound method ListModelMixin.list of <apps.livestock.web.api.v1.api.LiveStockViewSet object at 0x000002D902B82C90>> | \n
| initkwargs | \n{'basename': 'livestock', 'detail': False, 'suffix': 'List'} | \n
| kwargs | \n{} | \n
| method | \n'head' | \n
| request | \n<WSGIRequest: POST '/livestock/web/api/v1/livestock/'> | \n
| self | \n<apps.livestock.web.api.v1.api.LiveStockViewSet object at 0x000002D902B82C90> | \n
D:\\Software\\env\\Lib\\site-packages\\rest_framework\\views.py, line 515, in dispatch\n \n\n \n self.http_method_not_allowed)
else:
handler = self.http_method_not_allowed
response = handler(request, *args, **kwargs)
except Exception as exc:
response = self.handle_exception(exc)\n ^^^^^^^^^^^^^^^^^^^^^^^^^^\u2026
self.response = self.finalize_response(request, response, *args, **kwargs)
return self.response
def options(self, request, *args, **kwargs):
"""
| Variable | \nValue | \n
|---|---|
| args | \n() | \n
| handler | \n<bound method CreateModelMixin.create of <apps.livestock.web.api.v1.api.LiveStockViewSet object at 0x000002D902B82C90>> | \n
| kwargs | \n{} | \n
| request | \n<rest_framework.request.Request: POST '/livestock/web/api/v1/livestock/'> | \n
| self | \n<apps.livestock.web.api.v1.api.LiveStockViewSet object at 0x000002D902B82C90> | \n
D:\\Software\\env\\Lib\\site-packages\\rest_framework\\views.py, line 475, in handle_exception\n \n\n \n exception_handler = self.get_exception_handler()
context = self.get_exception_handler_context()
response = exception_handler(exc, context)
if response is None:
self.raise_uncaught_exception(exc)\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\u2026
response.exception = True
return response
def raise_uncaught_exception(self, exc):
if settings.DEBUG:
| Variable | \nValue | \n
|---|---|
| context | \n{'args': (),\n 'kwargs': {},\n 'request': <rest_framework.request.Request: POST '/livestock/web/api/v1/livestock/'>,\n 'view': <apps.livestock.web.api.v1.api.LiveStockViewSet object at 0x000002D902B82C90>} | \n
| exc | \nIntegrityError('null value in column "age_by_day" of relation "livestock_livestock" violates not-null constraint\\nDETAIL: Failing row contains (2, 2025-05-24 09:12:29.157289+00, 2025-05-24 09:12:29.157289+00, f, 2025-05-13 08:56:51.64436+00, 2, 1, 1, null, null, null, L, 1, 1, 1, 2, 2, \u0645\u062c\u062a\u0628\u06cc \u0630\u0648\u0627\u0644\u0641\u0642\u0627\u0631\u06cc-4061080598, \u0645\u062c\u062a\u0628\u06cc \u0630\u0648\u0627\u0644\u0641\u0642\u0627\u0631\u06cc-4061080598).\\n') | \n
| exception_handler | \n<function exception_handler at 0x000002D9024BDE40> | \n
| response | \nNone | \n
| self | \n<apps.livestock.web.api.v1.api.LiveStockViewSet object at 0x000002D902B82C90> | \n
D:\\Software\\env\\Lib\\site-packages\\rest_framework\\views.py, line 486, in raise_uncaught_exception\n \n\n \n def raise_uncaught_exception(self, exc):
if settings.DEBUG:
request = self.request
renderer_format = getattr(request.accepted_renderer, 'format')
use_plaintext_traceback = renderer_format not in ('html', 'api', 'admin')request.force_plaintext_errors(use_plaintext_traceback)
raise exc\n ^^^^^^^^^\u2026
# Note: Views are made CSRF exempt from within `as_view` as to prevent
# accidental removal of this exemption in cases where `dispatch` needs to
# be overridden.
def dispatch(self, request, *args, **kwargs):
"""
| Variable | \nValue | \n
|---|---|
| exc | \nIntegrityError('null value in column "age_by_day" of relation "livestock_livestock" violates not-null constraint\\nDETAIL: Failing row contains (2, 2025-05-24 09:12:29.157289+00, 2025-05-24 09:12:29.157289+00, f, 2025-05-13 08:56:51.64436+00, 2, 1, 1, null, null, null, L, 1, 1, 1, 2, 2, \u0645\u062c\u062a\u0628\u06cc \u0630\u0648\u0627\u0644\u0641\u0642\u0627\u0631\u06cc-4061080598, \u0645\u062c\u062a\u0628\u06cc \u0630\u0648\u0627\u0644\u0641\u0642\u0627\u0631\u06cc-4061080598).\\n') | \n
| renderer_format | \n'json' | \n
| request | \n<rest_framework.request.Request: POST '/livestock/web/api/v1/livestock/'> | \n
| self | \n<apps.livestock.web.api.v1.api.LiveStockViewSet object at 0x000002D902B82C90> | \n
| use_plaintext_traceback | \nTrue | \n
D:\\Software\\env\\Lib\\site-packages\\rest_framework\\views.py, line 512, in dispatch\n \n\n \n # Get the appropriate handler method
if request.method.lower() in self.http_method_names:
handler = getattr(self, request.method.lower(),
self.http_method_not_allowed)
else:
handler = self.http_method_not_allowed
response = handler(request, *args, **kwargs)\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\u2026
except Exception as exc:
response = self.handle_exception(exc)
self.response = self.finalize_response(request, response, *args, **kwargs)
return self.response
| Variable | \nValue | \n
|---|---|
| args | \n() | \n
| handler | \n<bound method CreateModelMixin.create of <apps.livestock.web.api.v1.api.LiveStockViewSet object at 0x000002D902B82C90>> | \n
| kwargs | \n{} | \n
| request | \n<rest_framework.request.Request: POST '/livestock/web/api/v1/livestock/'> | \n
| self | \n<apps.livestock.web.api.v1.api.LiveStockViewSet object at 0x000002D902B82C90> | \n
D:\\Software\\env\\Lib\\site-packages\\rest_framework\\mixins.py, line 19, in create\n \n\n \n class CreateModelMixin:
"""
Create a model instance.
"""
def create(self, request, *args, **kwargs):
serializer = self.get_serializer(data=request.data)
serializer.is_valid(raise_exception=True)
self.perform_create(serializer)\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\u2026
headers = self.get_success_headers(serializer.data)
return Response(serializer.data, status=status.HTTP_201_CREATED, headers=headers)
def perform_create(self, serializer):
serializer.save()
| Variable | \nValue | \n
|---|---|
| args | \n() | \n
| kwargs | \n{} | \n
| request | \n<rest_framework.request.Request: POST '/livestock/web/api/v1/livestock/'> | \n
| self | \n<apps.livestock.web.api.v1.api.LiveStockViewSet object at 0x000002D902B82C90> | \n
| serializer | \nLiveStockSerializer(context={'request': <rest_framework.request.Request: POST '/livestock/web/api/v1/livestock/'>, 'format': None, 'view': <apps.livestock.web.api.v1.api.LiveStockViewSet object>}, data={'herd': 1, 'tag': 1, 'type': 1, 'use_type': 1, 'weight_type': 'L', 'species': 1, 'birthdate': '2025-05-13 08:56:51.644360 +00:00', 'gender': 2}):\n id = IntegerField(label='ID', read_only=True)\n create_date = DateTimeField(read_only=True)\n modify_date = DateTimeField(read_only=True)\n creator_info = CharField(allow_null=True, max_length=100, required=False)\n modifier_info = CharField(allow_null=True, max_length=100, required=False)\n trash = BooleanField(required=False)\n weight_type = ChoiceField(choices=[('L', 'Light'), ('H', 'Heavy')], required=False)\n birthdate = DateTimeField(allow_null=True, required=False)\n gender = ChoiceField(choices=[(1, 'male'), (2, 'female')], required=False, validators=[<django.core.validators.MinValueValidator object>, <django.core.validators.MaxValueValidator object>])\n created_by = PrimaryKeyRelatedField(allow_null=True, queryset=User.objects.all(), required=False)\n modified_by = PrimaryKeyRelatedField(allow_null=True, queryset=User.objects.all(), required=False)\n herd = PrimaryKeyRelatedField(allow_null=True, queryset=Herd.objects.all(), required=False)\n tag = PrimaryKeyRelatedField(allow_null=True, queryset=Tag.objects.all(), required=False)\n type = PrimaryKeyRelatedField(allow_null=True, queryset=LiveStockType.objects.all(), required=False)\n use_type = PrimaryKeyRelatedField(allow_null=True, queryset=LiveStockUseType.objects.all(), required=False)\n species = PrimaryKeyRelatedField(allow_null=True, queryset=LiveStockSpecies.objects.all(), required=False) | \n
D:\\Software\\env\\Lib\\site-packages\\rest_framework\\mixins.py, line 24, in perform_create\n \n\n \n serializer = self.get_serializer(data=request.data)
serializer.is_valid(raise_exception=True)
self.perform_create(serializer)
headers = self.get_success_headers(serializer.data)
return Response(serializer.data, status=status.HTTP_201_CREATED, headers=headers)
def perform_create(self, serializer):
serializer.save()\n ^^^^^^^^^^^^^^^^^\u2026
def get_success_headers(self, data):
try:
return {'Location': str(data[api_settings.URL_FIELD_NAME])}except (TypeError, KeyError):
return {}| Variable | \nValue | \n
|---|---|
| self | \n<apps.livestock.web.api.v1.api.LiveStockViewSet object at 0x000002D902B82C90> | \n
| serializer | \nLiveStockSerializer(context={'request': <rest_framework.request.Request: POST '/livestock/web/api/v1/livestock/'>, 'format': None, 'view': <apps.livestock.web.api.v1.api.LiveStockViewSet object>}, data={'herd': 1, 'tag': 1, 'type': 1, 'use_type': 1, 'weight_type': 'L', 'species': 1, 'birthdate': '2025-05-13 08:56:51.644360 +00:00', 'gender': 2}):\n id = IntegerField(label='ID', read_only=True)\n create_date = DateTimeField(read_only=True)\n modify_date = DateTimeField(read_only=True)\n creator_info = CharField(allow_null=True, max_length=100, required=False)\n modifier_info = CharField(allow_null=True, max_length=100, required=False)\n trash = BooleanField(required=False)\n weight_type = ChoiceField(choices=[('L', 'Light'), ('H', 'Heavy')], required=False)\n birthdate = DateTimeField(allow_null=True, required=False)\n gender = ChoiceField(choices=[(1, 'male'), (2, 'female')], required=False, validators=[<django.core.validators.MinValueValidator object>, <django.core.validators.MaxValueValidator object>])\n created_by = PrimaryKeyRelatedField(allow_null=True, queryset=User.objects.all(), required=False)\n modified_by = PrimaryKeyRelatedField(allow_null=True, queryset=User.objects.all(), required=False)\n herd = PrimaryKeyRelatedField(allow_null=True, queryset=Herd.objects.all(), required=False)\n tag = PrimaryKeyRelatedField(allow_null=True, queryset=Tag.objects.all(), required=False)\n type = PrimaryKeyRelatedField(allow_null=True, queryset=LiveStockType.objects.all(), required=False)\n use_type = PrimaryKeyRelatedField(allow_null=True, queryset=LiveStockUseType.objects.all(), required=False)\n species = PrimaryKeyRelatedField(allow_null=True, queryset=LiveStockSpecies.objects.all(), required=False) | \n
D:\\Software\\env\\Lib\\site-packages\\rest_framework\\serializers.py, line 210, in save\n \n\n \n if self.instance is not None:
self.instance = self.update(self.instance, validated_data)
assert self.instance is not None, (
'`update()` did not return an object instance.'
)
else:
self.instance = self.create(validated_data)\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^\u2026
assert self.instance is not None, (
'`create()` did not return an object instance.'
)
return self.instance
| Variable | \nValue | \n
|---|---|
| kwargs | \n{} | \n
| self | \nLiveStockSerializer(context={'request': <rest_framework.request.Request: POST '/livestock/web/api/v1/livestock/'>, 'format': None, 'view': <apps.livestock.web.api.v1.api.LiveStockViewSet object>}, data={'herd': 1, 'tag': 1, 'type': 1, 'use_type': 1, 'weight_type': 'L', 'species': 1, 'birthdate': '2025-05-13 08:56:51.644360 +00:00', 'gender': 2}):\n id = IntegerField(label='ID', read_only=True)\n create_date = DateTimeField(read_only=True)\n modify_date = DateTimeField(read_only=True)\n creator_info = CharField(allow_null=True, max_length=100, required=False)\n modifier_info = CharField(allow_null=True, max_length=100, required=False)\n trash = BooleanField(required=False)\n weight_type = ChoiceField(choices=[('L', 'Light'), ('H', 'Heavy')], required=False)\n birthdate = DateTimeField(allow_null=True, required=False)\n gender = ChoiceField(choices=[(1, 'male'), (2, 'female')], required=False, validators=[<django.core.validators.MinValueValidator object>, <django.core.validators.MaxValueValidator object>])\n created_by = PrimaryKeyRelatedField(allow_null=True, queryset=User.objects.all(), required=False)\n modified_by = PrimaryKeyRelatedField(allow_null=True, queryset=User.objects.all(), required=False)\n herd = PrimaryKeyRelatedField(allow_null=True, queryset=Herd.objects.all(), required=False)\n tag = PrimaryKeyRelatedField(allow_null=True, queryset=Tag.objects.all(), required=False)\n type = PrimaryKeyRelatedField(allow_null=True, queryset=LiveStockType.objects.all(), required=False)\n use_type = PrimaryKeyRelatedField(allow_null=True, queryset=LiveStockUseType.objects.all(), required=False)\n species = PrimaryKeyRelatedField(allow_null=True, queryset=LiveStockSpecies.objects.all(), required=False) | \n
| validated_data | \n{'birthdate': datetime.datetime(2025, 5, 13, 8, 56, 51, 644360, tzinfo=zoneinfo.ZoneInfo(key='UTC')),\n 'gender': 2,\n 'herd': <Herd: \u06af\u0644\u0647 \u0634\u0645\u0627\u0631\u0647 \u06cc\u06a9-12542365>,\n 'species': <LiveStockSpecies: \u0644\u0631\u06cc>,\n 'tag': <Tag: 256666>,\n 'type': <LiveStockType: \u06af\u0648\u0633\u0641\u0646\u062f>,\n 'use_type': <LiveStockUseType: \u0634\u06cc\u0631\u06cc>,\n 'weight_type': 'L'} | \n
D:\\Software\\env\\Lib\\site-packages\\rest_framework\\serializers.py, line 991, in create\n \n\n \n info = model_meta.get_field_info(ModelClass)
many_to_many = {}for field_name, relation_info in info.relations.items():
if relation_info.to_many and (field_name in validated_data):
many_to_many[field_name] = validated_data.pop(field_name)
try:
instance = ModelClass._default_manager.create(**validated_data)\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\u2026
except TypeError:
tb = traceback.format_exc()
msg = (
'Got a `TypeError` when calling `%s.%s.create()`. '
'This may be because you have a writable field on the '
'serializer class that is not a valid argument to '
| Variable | \nValue | \n
|---|---|
| ModelClass | \n<class 'apps.livestock.models.LiveStock'> | \n
| field_name | \n'species' | \n
| info | \nFieldInfo(pk=<django.db.models.fields.BigAutoField: id>, fields={'create_date': <django.db.models.fields.DateTimeField: create_date>, 'modify_date': <django.db.models.fields.DateTimeField: modify_date>, 'creator_info': <django.db.models.fields.CharField: creator_info>, 'modifier_info': <django.db.models.fields.CharField: modifier_info>, 'trash': <django.db.models.fields.BooleanField: trash>, 'weight_type': <django.db.models.fields.CharField: weight_type>, 'birthdate': <django.db.models.fields.DateTimeField: birthdate>, 'gender': <django.db.models.fields.IntegerField: gender>}, forward_relations={'created_by': RelationInfo(model_field=<django.db.models.fields.related.ForeignKey: created_by>, related_model=<class 'apps.authentication.models.User'>, to_many=False, to_field=None, has_through_model=False, reverse=False), 'modified_by': RelationInfo(model_field=<django.db.models.fields.related.ForeignKey: modified_by>, related_model=<class 'apps.authentication.models.User'>, to_many=False, to_field=None, has_through_model=False, reverse=False), 'herd': RelationInfo(model_field=<django.db.models.fields.related.ForeignKey: herd>, related_model=<class 'apps.herd.models.Herd'>, to_many=False, to_field='id', has_through_model=False, reverse=False), 'tag': RelationInfo(model_field=<django.db.models.fields.related.ForeignKey: tag>, related_model=<class 'apps.tag.models.Tag'>, to_many=False, to_field='id', has_through_model=False, reverse=False), 'type': RelationInfo(model_field=<django.db.models.fields.related.ForeignKey: type>, related_model=<class 'apps.livestock.models.LiveStockType'>, to_many=False, to_field='id', has_through_model=False, reverse=False), 'use_type': RelationInfo(model_field=<django.db.models.fields.related.ForeignKey: use_type>, related_model=<class 'apps.livestock.models.LiveStockUseType'>, to_many=False, to_field='id', has_through_model=False, reverse=False), 'species': RelationInfo(model_field=<django.db.models.fields.related.ForeignKey: species>, related_model=<class 'apps.livestock.models.LiveStockSpecies'>, to_many=False, to_field='id', has_through_model=False, reverse=False)}, reverse_relations={}, fields_and_pk={'pk': <django.db.models.fields.BigAutoField: id>, 'id': <django.db.models.fields.BigAutoField: id>, 'create_date': <django.db.models.fields.DateTimeField: create_date>, 'modify_date': <django.db.models.fields.DateTimeField: modify_date>, 'creator_info': <django.db.models.fields.CharField: creator_info>, 'modifier_info': <django.db.models.fields.CharField: modifier_info>, 'trash': <django.db.models.fields.BooleanField: trash>, 'weight_type': <django.db.models.fields.CharField: weight_type>, 'birthdate': <django.db.models.fields.DateTimeField: birthdate>, 'gender': <django.db.models.fields.IntegerField: gender>}, relations={'created_by': RelationInfo(model_field=<django.db.models.fields.related.ForeignKey: created_by>, related_model=<class 'apps.authentication.models.User'>, to_many=False, to_field=None, has_through_model=False, reverse=False), 'modified_by': RelationInfo(model_field=<django.db.models.fields.related.ForeignKey: modified_by>, related_model=<class 'apps.authentication.models.User'>, to_many=False, to_field=None, has_through_model=False, reverse=False), 'herd': RelationInfo(model_field=<django.db.models.fields.related.ForeignKey: herd>, related_model=<class 'apps.herd.models.Herd'>, to_many=False, to_field='id', has_through_model=False, reverse=False), 'tag': RelationInfo(model_field=<django.db.models.fields.related.ForeignKey: tag>, related_model=<class 'apps.tag.models.Tag'>, to_many=False, to_field='id', has_through_model=False, reverse=False), 'type': RelationInfo(model_field=<django.db.models.fields.related.ForeignKey: type>, related_model=<class 'apps.livestock.models.LiveStockType'>, to_many=False, to_field='id', has_through_model=False, reverse=False), 'use_type': RelationInfo(model_field=<django.db.models.fields.related.ForeignKey: use_type>, related_model=<class 'apps.livestock.models.LiveStockUseType'>, to_many=False, to_field='id', has_through_model=False, reverse=False), '\u2026 <trimmed 4321 bytes string> | \n
| many_to_many | \n{} | \n
| relation_info | \nRelationInfo(model_field=<django.db.models.fields.related.ForeignKey: species>, related_model=<class 'apps.livestock.models.LiveStockSpecies'>, to_many=False, to_field='id', has_through_model=False, reverse=False) | \n
| self | \nLiveStockSerializer(context={'request': <rest_framework.request.Request: POST '/livestock/web/api/v1/livestock/'>, 'format': None, 'view': <apps.livestock.web.api.v1.api.LiveStockViewSet object>}, data={'herd': 1, 'tag': 1, 'type': 1, 'use_type': 1, 'weight_type': 'L', 'species': 1, 'birthdate': '2025-05-13 08:56:51.644360 +00:00', 'gender': 2}):\n id = IntegerField(label='ID', read_only=True)\n create_date = DateTimeField(read_only=True)\n modify_date = DateTimeField(read_only=True)\n creator_info = CharField(allow_null=True, max_length=100, required=False)\n modifier_info = CharField(allow_null=True, max_length=100, required=False)\n trash = BooleanField(required=False)\n weight_type = ChoiceField(choices=[('L', 'Light'), ('H', 'Heavy')], required=False)\n birthdate = DateTimeField(allow_null=True, required=False)\n gender = ChoiceField(choices=[(1, 'male'), (2, 'female')], required=False, validators=[<django.core.validators.MinValueValidator object>, <django.core.validators.MaxValueValidator object>])\n created_by = PrimaryKeyRelatedField(allow_null=True, queryset=User.objects.all(), required=False)\n modified_by = PrimaryKeyRelatedField(allow_null=True, queryset=User.objects.all(), required=False)\n herd = PrimaryKeyRelatedField(allow_null=True, queryset=Herd.objects.all(), required=False)\n tag = PrimaryKeyRelatedField(allow_null=True, queryset=Tag.objects.all(), required=False)\n type = PrimaryKeyRelatedField(allow_null=True, queryset=LiveStockType.objects.all(), required=False)\n use_type = PrimaryKeyRelatedField(allow_null=True, queryset=LiveStockUseType.objects.all(), required=False)\n species = PrimaryKeyRelatedField(allow_null=True, queryset=LiveStockSpecies.objects.all(), required=False) | \n
| validated_data | \n{'birthdate': datetime.datetime(2025, 5, 13, 8, 56, 51, 644360, tzinfo=zoneinfo.ZoneInfo(key='UTC')),\n 'gender': 2,\n 'herd': <Herd: \u06af\u0644\u0647 \u0634\u0645\u0627\u0631\u0647 \u06cc\u06a9-12542365>,\n 'species': <LiveStockSpecies: \u0644\u0631\u06cc>,\n 'tag': <Tag: 256666>,\n 'type': <LiveStockType: \u06af\u0648\u0633\u0641\u0646\u062f>,\n 'use_type': <LiveStockUseType: \u0634\u06cc\u0631\u06cc>,\n 'weight_type': 'L'} | \n
D:\\Software\\env\\Lib\\site-packages\\django\\db\\models\\manager.py, line 87, in manager_method\n \n\n \n return []
@classmethod
def _get_queryset_methods(cls, queryset_class):
def create_method(name, method):
@wraps(method)
def manager_method(self, *args, **kwargs):
return getattr(self.get_queryset(), name)(*args, **kwargs)\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\u2026
return manager_method
new_methods = {}for name, method in inspect.getmembers(
queryset_class, predicate=inspect.isfunction
| Variable | \nValue | \n
|---|---|
| args | \n() | \n
| kwargs | \n{'birthdate': datetime.datetime(2025, 5, 13, 8, 56, 51, 644360, tzinfo=zoneinfo.ZoneInfo(key='UTC')),\n 'gender': 2,\n 'herd': <Herd: \u06af\u0644\u0647 \u0634\u0645\u0627\u0631\u0647 \u06cc\u06a9-12542365>,\n 'species': <LiveStockSpecies: \u0644\u0631\u06cc>,\n 'tag': <Tag: 256666>,\n 'type': <LiveStockType: \u06af\u0648\u0633\u0641\u0646\u062f>,\n 'use_type': <LiveStockUseType: \u0634\u06cc\u0631\u06cc>,\n 'weight_type': 'L'} | \n
| name | \n'create' | \n
| self | \n<django.db.models.manager.Manager object at 0x000002D902811280> | \n
D:\\Software\\env\\Lib\\site-packages\\django\\db\\models\\query.py, line 677, in create\n \n\n \n raise ValueError(
"The following fields do not exist in this model: %s"
% ", ".join(reverse_one_to_one_fields)
)
obj = self.model(**kwargs)
self._for_write = True
obj.save(force_insert=True, using=self.db)\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\u2026
return obj
async def acreate(self, **kwargs):
return await sync_to_async(self.create)(**kwargs)
def _prepare_for_bulk_create(self, objs):
| Variable | \nValue | \n
|---|---|
| kwargs | \n{'birthdate': datetime.datetime(2025, 5, 13, 8, 56, 51, 644360, tzinfo=zoneinfo.ZoneInfo(key='UTC')),\n 'gender': 2,\n 'herd': <Herd: \u06af\u0644\u0647 \u0634\u0645\u0627\u0631\u0647 \u06cc\u06a9-12542365>,\n 'species': <LiveStockSpecies: \u0644\u0631\u06cc>,\n 'tag': <Tag: 256666>,\n 'type': <LiveStockType: \u06af\u0648\u0633\u0641\u0646\u062f>,\n 'use_type': <LiveStockUseType: \u0634\u06cc\u0631\u06cc>,\n 'weight_type': 'L'} | \n
| obj | \n<LiveStock: \u06af\u0648\u0633\u0641\u0646\u062f-\u0644\u0631\u06cc> | \n
| reverse_one_to_one_fields | \nfrozenset() | \n
| self | \n<QuerySet []> | \n
D:\\Project\\Rasaddam_Backend\\apps\\livestock\\models.py, line 87, in save\n \n\n \n )
gender = models.IntegerField(choices=gender_type, default=1)
def __str__(self):
return f'{self.type.name}-{self.species.name}'def save(self, *args, **kwargs):
super(LiveStock, self).save(*args, **kwargs)\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\u2026
| Variable | \nValue | \n
|---|---|
| __class__ | \n<class 'apps.livestock.models.LiveStock'> | \n
| args | \n() | \n
| kwargs | \n{'force_insert': True, 'using': 'default'} | \n
| self | \n<LiveStock: \u06af\u0648\u0633\u0641\u0646\u062f-\u0644\u0631\u06cc> | \n
D:\\Project\\Rasaddam_Backend\\apps\\core\\models.py, line 37, in save\n \n\n \n def save(self, *args, **kwargs):
user = get_current_user() # get user object
self.modified_by = user
if not self.creator_info:
self.created_by = user
self.creator_info = user.first_name + ' ' + user.last_name + '-' + user.national_code
self.modifier_info = user.first_name + ' ' + user.last_name + '-' + user.national_code
super(BaseModel, self).save(*args, **kwargs)\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\u2026
class MobileTest(BaseModel):
latitude = models.DecimalField(max_digits=22, decimal_places=16)
longitude = models.DecimalField(max_digits=22, decimal_places=16)
count = models.IntegerField(default=0)
| Variable | \nValue | \n
|---|---|
| __class__ | \n<class 'apps.core.models.BaseModel'> | \n
| args | \n() | \n
| kwargs | \n{'force_insert': True, 'using': 'default'} | \n
| self | \n<LiveStock: \u06af\u0648\u0633\u0641\u0646\u062f-\u0644\u0631\u06cc> | \n
| user | \n<User: moji \u0630\u0648\u0627\u0644\u0641\u0642\u0627\u0631\u06cc-None> | \n
D:\\Software\\env\\Lib\\site-packages\\django\\db\\models\\base.py, line 814, in save\n \n\n \n for field in self._meta.concrete_fields:
if not field.primary_key and not hasattr(field, "through"):
field_names.add(field.attname)
loaded_fields = field_names.difference(deferred_fields)
if loaded_fields:
update_fields = frozenset(loaded_fields)
self.save_base(\n ^\u2026
using=using,
force_insert=force_insert,
force_update=force_update,
update_fields=update_fields,
)
| Variable | \nValue | \n
|---|---|
| deferred_fields | \nset() | \n
| force_insert | \nTrue | \n
| force_update | \nFalse | \n
| self | \n<LiveStock: \u06af\u0648\u0633\u0641\u0646\u062f-\u0644\u0631\u06cc> | \n
| update_fields | \nNone | \n
| using | \n'default' | \n
D:\\Software\\env\\Lib\\site-packages\\django\\db\\models\\base.py, line 901, in save_base\n \n\n \n parent_inserted = False
if not raw:
# Validate force insert only when parents are inserted.
force_insert = self._validate_force_insert(force_insert)
parent_inserted = self._save_parents(
cls, using, update_fields, force_insert
)
updated = self._save_table(\n\u2026
raw,
cls,
force_insert or parent_inserted,
force_update,
using,
update_fields,
| Variable | \nValue | \n
|---|---|
| cls | \n<class 'apps.livestock.models.LiveStock'> | \n
| context_manager | \n<contextlib._GeneratorContextManager object at 0x000002D902B809B0> | \n
| force_insert | \n(<class 'apps.livestock.models.LiveStock'>,) | \n
| force_update | \nFalse | \n
| meta | \n<Options for LiveStock> | \n
| origin | \n<class 'apps.livestock.models.LiveStock'> | \n
| parent_inserted | \nFalse | \n
| raw | \nFalse | \n
| self | \n<LiveStock: \u06af\u0648\u0633\u0641\u0646\u062f-\u0644\u0631\u06cc> | \n
| update_fields | \nNone | \n
| using | \n'default' | \n
D:\\Software\\env\\Lib\\site-packages\\django\\db\\models\\base.py, line 1059, in _save_table\n \n\n \n )
fields = [
f
for f in meta.local_concrete_fields
if not f.generated and (pk_set or f is not meta.auto_field)
]
returning_fields = meta.db_returning_fields
results = self._do_insert(\n\u2026
cls._base_manager, using, fields, returning_fields, raw
)
if results:
for value, field in zip(results[0], returning_fields):
setattr(self, field.attname, value)
return updated
| Variable | \nValue | \n
|---|---|
| cls | \n<class 'apps.livestock.models.LiveStock'> | \n
| fields | \n[<django.db.models.fields.DateTimeField: create_date>,\n <django.db.models.fields.DateTimeField: modify_date>,\n <django.db.models.fields.related.ForeignKey: created_by>,\n <django.db.models.fields.related.ForeignKey: modified_by>,\n <django.db.models.fields.CharField: creator_info>,\n <django.db.models.fields.CharField: modifier_info>,\n <django.db.models.fields.BooleanField: trash>,\n <django.db.models.fields.related.ForeignKey: herd>,\n <django.db.models.fields.related.ForeignKey: tag>,\n <django.db.models.fields.related.ForeignKey: type>,\n <django.db.models.fields.related.ForeignKey: use_type>,\n <django.db.models.fields.CharField: weight_type>,\n <django.db.models.fields.related.ForeignKey: species>,\n <django.db.models.fields.DateTimeField: birthdate>,\n <django.db.models.fields.IntegerField: gender>] | \n
| force_insert | \n(<class 'apps.livestock.models.LiveStock'>,) | \n
| force_update | \nFalse | \n
| meta | \n<Options for LiveStock> | \n
| non_pks | \n[<django.db.models.fields.DateTimeField: create_date>,\n <django.db.models.fields.DateTimeField: modify_date>,\n <django.db.models.fields.related.ForeignKey: created_by>,\n <django.db.models.fields.related.ForeignKey: modified_by>,\n <django.db.models.fields.CharField: creator_info>,\n <django.db.models.fields.CharField: modifier_info>,\n <django.db.models.fields.BooleanField: trash>,\n <django.db.models.fields.related.ForeignKey: herd>,\n <django.db.models.fields.related.ForeignKey: tag>,\n <django.db.models.fields.related.ForeignKey: type>,\n <django.db.models.fields.related.ForeignKey: use_type>,\n <django.db.models.fields.CharField: weight_type>,\n <django.db.models.fields.related.ForeignKey: species>,\n <django.db.models.fields.DateTimeField: birthdate>,\n <django.db.models.fields.IntegerField: gender>] | \n
| pk_set | \nFalse | \n
| pk_val | \nNone | \n
| raw | \nFalse | \n
| returning_fields | \n[<django.db.models.fields.BigAutoField: id>] | \n
| self | \n<LiveStock: \u06af\u0648\u0633\u0641\u0646\u062f-\u0644\u0631\u06cc> | \n
| update_fields | \nNone | \n
| updated | \nFalse | \n
| using | \n'default' | \n
D:\\Software\\env\\Lib\\site-packages\\django\\db\\models\\base.py, line 1100, in _do_insert\n \n\n \n return filtered._update(values) > 0
def _do_insert(self, manager, using, fields, returning_fields, raw):
"""
Do an INSERT. If returning_fields is defined then this method should
return the newly created data for the model.
"""
return manager._insert(\n\u2026
[self],
fields=fields,
returning_fields=returning_fields,
using=using,
raw=raw,
)
| Variable | \nValue | \n
|---|---|
| fields | \n[<django.db.models.fields.DateTimeField: create_date>,\n <django.db.models.fields.DateTimeField: modify_date>,\n <django.db.models.fields.related.ForeignKey: created_by>,\n <django.db.models.fields.related.ForeignKey: modified_by>,\n <django.db.models.fields.CharField: creator_info>,\n <django.db.models.fields.CharField: modifier_info>,\n <django.db.models.fields.BooleanField: trash>,\n <django.db.models.fields.related.ForeignKey: herd>,\n <django.db.models.fields.related.ForeignKey: tag>,\n <django.db.models.fields.related.ForeignKey: type>,\n <django.db.models.fields.related.ForeignKey: use_type>,\n <django.db.models.fields.CharField: weight_type>,\n <django.db.models.fields.related.ForeignKey: species>,\n <django.db.models.fields.DateTimeField: birthdate>,\n <django.db.models.fields.IntegerField: gender>] | \n
| manager | \n<django.db.models.manager.Manager object at 0x000002D902B80B60> | \n
| raw | \nFalse | \n
| returning_fields | \n[<django.db.models.fields.BigAutoField: id>] | \n
| self | \n<LiveStock: \u06af\u0648\u0633\u0641\u0646\u062f-\u0644\u0631\u06cc> | \n
| using | \n'default' | \n
D:\\Software\\env\\Lib\\site-packages\\django\\db\\models\\manager.py, line 87, in manager_method\n \n\n \n return []
@classmethod
def _get_queryset_methods(cls, queryset_class):
def create_method(name, method):
@wraps(method)
def manager_method(self, *args, **kwargs):
return getattr(self.get_queryset(), name)(*args, **kwargs)\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\u2026
return manager_method
new_methods = {}for name, method in inspect.getmembers(
queryset_class, predicate=inspect.isfunction
| Variable | \nValue | \n
|---|---|
| args | \n([<LiveStock: \u06af\u0648\u0633\u0641\u0646\u062f-\u0644\u0631\u06cc>],) | \n
| kwargs | \n{'fields': [<django.db.models.fields.DateTimeField: create_date>,\n <django.db.models.fields.DateTimeField: modify_date>,\n <django.db.models.fields.related.ForeignKey: created_by>,\n <django.db.models.fields.related.ForeignKey: modified_by>,\n <django.db.models.fields.CharField: creator_info>,\n <django.db.models.fields.CharField: modifier_info>,\n <django.db.models.fields.BooleanField: trash>,\n <django.db.models.fields.related.ForeignKey: herd>,\n <django.db.models.fields.related.ForeignKey: tag>,\n <django.db.models.fields.related.ForeignKey: type>,\n <django.db.models.fields.related.ForeignKey: use_type>,\n <django.db.models.fields.CharField: weight_type>,\n <django.db.models.fields.related.ForeignKey: species>,\n <django.db.models.fields.DateTimeField: birthdate>,\n <django.db.models.fields.IntegerField: gender>],\n 'raw': False,\n 'returning_fields': [<django.db.models.fields.BigAutoField: id>],\n 'using': 'default'} | \n
| name | \n'_insert' | \n
| self | \n<django.db.models.manager.Manager object at 0x000002D902B80B60> | \n
D:\\Software\\env\\Lib\\site-packages\\django\\db\\models\\query.py, line 1845, in _insert\n \n\n \n query = sql.InsertQuery(
self.model,
on_conflict=on_conflict,
update_fields=update_fields,
unique_fields=unique_fields,
)
query.insert_values(fields, objs, raw=raw)
return query.get_compiler(using=using).execute_sql(returning_fields)\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\u2026
_insert.alters_data = True
_insert.queryset_only = False
def _batched_insert(
self,
| Variable | \nValue | \n
|---|---|
| fields | \n[<django.db.models.fields.DateTimeField: create_date>,\n <django.db.models.fields.DateTimeField: modify_date>,\n <django.db.models.fields.related.ForeignKey: created_by>,\n <django.db.models.fields.related.ForeignKey: modified_by>,\n <django.db.models.fields.CharField: creator_info>,\n <django.db.models.fields.CharField: modifier_info>,\n <django.db.models.fields.BooleanField: trash>,\n <django.db.models.fields.related.ForeignKey: herd>,\n <django.db.models.fields.related.ForeignKey: tag>,\n <django.db.models.fields.related.ForeignKey: type>,\n <django.db.models.fields.related.ForeignKey: use_type>,\n <django.db.models.fields.CharField: weight_type>,\n <django.db.models.fields.related.ForeignKey: species>,\n <django.db.models.fields.DateTimeField: birthdate>,\n <django.db.models.fields.IntegerField: gender>] | \n
| objs | \n[<LiveStock: \u06af\u0648\u0633\u0641\u0646\u062f-\u0644\u0631\u06cc>] | \n
| on_conflict | \nNone | \n
| query | \n<django.db.models.sql.subqueries.InsertQuery object at 0x000002D902B80710> | \n
| raw | \nFalse | \n
| returning_fields | \n[<django.db.models.fields.BigAutoField: id>] | \n
| self | \n<QuerySet []> | \n
| unique_fields | \nNone | \n
| update_fields | \nNone | \n
| using | \n'default' | \n
D:\\Software\\env\\Lib\\site-packages\\django\\db\\models\\sql\\compiler.py, line 1822, in execute_sql\n \n\n \n and len(self.query.objs) != 1
and not self.connection.features.can_return_rows_from_bulk_insert
)
opts = self.query.get_meta()
self.returning_fields = returning_fields
with self.connection.cursor() as cursor:
for sql, params in self.as_sql():
cursor.execute(sql, params)\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^\u2026
if not self.returning_fields:
return []
if (
self.connection.features.can_return_rows_from_bulk_insert
and len(self.query.objs) > 1
):
| Variable | \nValue | \n
|---|---|
| cursor | \n<django.db.backends.postgresql.base.CursorDebugWrapper object at 0x000002D902B83CB0> | \n
| opts | \n<Options for LiveStock> | \n
| params | \n(datetime.datetime(2025, 5, 24, 9, 12, 29, 157289, tzinfo=datetime.timezone.utc),\n datetime.datetime(2025, 5, 24, 9, 12, 29, 157289, tzinfo=datetime.timezone.utc),\n 2,\n 2,\n '\u0645\u062c\u062a\u0628\u06cc \u0630\u0648\u0627\u0644\u0641\u0642\u0627\u0631\u06cc-4061080598',\n '\u0645\u062c\u062a\u0628\u06cc \u0630\u0648\u0627\u0644\u0641\u0642\u0627\u0631\u06cc-4061080598',\n False,\n 1,\n 1,\n 1,\n 1,\n 'L',\n 1,\n datetime.datetime(2025, 5, 13, 8, 56, 51, 644360, tzinfo=zoneinfo.ZoneInfo(key='UTC')),\n 2) | \n
| returning_fields | \n[<django.db.models.fields.BigAutoField: id>] | \n
| self | \n<SQLInsertCompiler model=LiveStock connection=<DatabaseWrapper vendor='postgresql' alias='default'> using='default'> | \n
| sql | \n('INSERT INTO "livestock_livestock" ("create_date", "modify_date", '\n '"created_by_id", "modified_by_id", "creator_info", "modifier_info", "trash", '\n '"herd_id", "tag_id", "type_id", "use_type_id", "weight_type", "species_id", '\n '"birthdate", "gender") VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, '\n '%s, %s, %s, %s) RETURNING "livestock_livestock"."id"') | \n
D:\\Software\\env\\Lib\\site-packages\\django\\db\\backends\\utils.py, line 122, in execute\n \n\n \n class CursorDebugWrapper(CursorWrapper):
# XXX callproc isn't instrumented at this time.
def execute(self, sql, params=None):
with self.debug_sql(sql, params, use_last_executed_query=True):
return super().execute(sql, params)\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^\u2026
def executemany(self, sql, param_list):
with self.debug_sql(sql, param_list, many=True):
return super().executemany(sql, param_list)
@contextmanager
| Variable | \nValue | \n
|---|---|
| __class__ | \n<class 'django.db.backends.utils.CursorDebugWrapper'> | \n
| params | \n(datetime.datetime(2025, 5, 24, 9, 12, 29, 157289, tzinfo=datetime.timezone.utc),\n datetime.datetime(2025, 5, 24, 9, 12, 29, 157289, tzinfo=datetime.timezone.utc),\n 2,\n 2,\n '\u0645\u062c\u062a\u0628\u06cc \u0630\u0648\u0627\u0644\u0641\u0642\u0627\u0631\u06cc-4061080598',\n '\u0645\u062c\u062a\u0628\u06cc \u0630\u0648\u0627\u0644\u0641\u0642\u0627\u0631\u06cc-4061080598',\n False,\n 1,\n 1,\n 1,\n 1,\n 'L',\n 1,\n datetime.datetime(2025, 5, 13, 8, 56, 51, 644360, tzinfo=zoneinfo.ZoneInfo(key='UTC')),\n 2) | \n
| self | \n<django.db.backends.postgresql.base.CursorDebugWrapper object at 0x000002D902B83CB0> | \n
| sql | \n('INSERT INTO "livestock_livestock" ("create_date", "modify_date", '\n '"created_by_id", "modified_by_id", "creator_info", "modifier_info", "trash", '\n '"herd_id", "tag_id", "type_id", "use_type_id", "weight_type", "species_id", '\n '"birthdate", "gender") VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, '\n '%s, %s, %s, %s) RETURNING "livestock_livestock"."id"') | \n
D:\\Software\\env\\Lib\\site-packages\\django\\db\\backends\\utils.py, line 79, in execute\n \n\n \n elif kparams is None:
return self.cursor.callproc(procname, params)
else:
params = params or ()
return self.cursor.callproc(procname, params, kparams)
def execute(self, sql, params=None):
return self._execute_with_wrappers(\n\u2026
sql, params, many=False, executor=self._execute
)
def executemany(self, sql, param_list):
return self._execute_with_wrappers(
sql, param_list, many=True, executor=self._executemany
| Variable | \nValue | \n
|---|---|
| params | \n(datetime.datetime(2025, 5, 24, 9, 12, 29, 157289, tzinfo=datetime.timezone.utc),\n datetime.datetime(2025, 5, 24, 9, 12, 29, 157289, tzinfo=datetime.timezone.utc),\n 2,\n 2,\n '\u0645\u062c\u062a\u0628\u06cc \u0630\u0648\u0627\u0644\u0641\u0642\u0627\u0631\u06cc-4061080598',\n '\u0645\u062c\u062a\u0628\u06cc \u0630\u0648\u0627\u0644\u0641\u0642\u0627\u0631\u06cc-4061080598',\n False,\n 1,\n 1,\n 1,\n 1,\n 'L',\n 1,\n datetime.datetime(2025, 5, 13, 8, 56, 51, 644360, tzinfo=zoneinfo.ZoneInfo(key='UTC')),\n 2) | \n
| self | \n<django.db.backends.postgresql.base.CursorDebugWrapper object at 0x000002D902B83CB0> | \n
| sql | \n('INSERT INTO "livestock_livestock" ("create_date", "modify_date", '\n '"created_by_id", "modified_by_id", "creator_info", "modifier_info", "trash", '\n '"herd_id", "tag_id", "type_id", "use_type_id", "weight_type", "species_id", '\n '"birthdate", "gender") VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, '\n '%s, %s, %s, %s) RETURNING "livestock_livestock"."id"') | \n
D:\\Software\\env\\Lib\\site-packages\\django\\db\\backends\\utils.py, line 92, in _execute_with_wrappers\n \n\n \n sql, param_list, many=True, executor=self._executemany
)
def _execute_with_wrappers(self, sql, params, many, executor):
context = {"connection": self.db, "cursor": self}for wrapper in reversed(self.db.execute_wrappers):
executor = functools.partial(wrapper, executor)
return executor(sql, params, many, context)\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\u2026
def _execute(self, sql, params, *ignored_wrapper_args):
# Raise a warning during app initialization (stored_app_configs is only
# ever set during testing).
if not apps.ready and not apps.stored_app_configs:
warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
| Variable | \nValue | \n
|---|---|
| context | \n{'connection': <DatabaseWrapper vendor='postgresql' alias='default'>,\n 'cursor': <django.db.backends.postgresql.base.CursorDebugWrapper object at 0x000002D902B83CB0>} | \n
| executor | \n<bound method CursorWrapper._execute of <django.db.backends.postgresql.base.CursorDebugWrapper object at 0x000002D902B83CB0>> | \n
| many | \nFalse | \n
| params | \n(datetime.datetime(2025, 5, 24, 9, 12, 29, 157289, tzinfo=datetime.timezone.utc),\n datetime.datetime(2025, 5, 24, 9, 12, 29, 157289, tzinfo=datetime.timezone.utc),\n 2,\n 2,\n '\u0645\u062c\u062a\u0628\u06cc \u0630\u0648\u0627\u0644\u0641\u0642\u0627\u0631\u06cc-4061080598',\n '\u0645\u062c\u062a\u0628\u06cc \u0630\u0648\u0627\u0644\u0641\u0642\u0627\u0631\u06cc-4061080598',\n False,\n 1,\n 1,\n 1,\n 1,\n 'L',\n 1,\n datetime.datetime(2025, 5, 13, 8, 56, 51, 644360, tzinfo=zoneinfo.ZoneInfo(key='UTC')),\n 2) | \n
| self | \n<django.db.backends.postgresql.base.CursorDebugWrapper object at 0x000002D902B83CB0> | \n
| sql | \n('INSERT INTO "livestock_livestock" ("create_date", "modify_date", '\n '"created_by_id", "modified_by_id", "creator_info", "modifier_info", "trash", '\n '"herd_id", "tag_id", "type_id", "use_type_id", "weight_type", "species_id", '\n '"birthdate", "gender") VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, '\n '%s, %s, %s, %s) RETURNING "livestock_livestock"."id"') | \n
D:\\Software\\env\\Lib\\site-packages\\django\\db\\backends\\utils.py, line 100, in _execute\n \n\n \n def _execute(self, sql, params, *ignored_wrapper_args):
# Raise a warning during app initialization (stored_app_configs is only
# ever set during testing).
if not apps.ready and not apps.stored_app_configs:
warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
self.db.validate_no_broken_transaction()
with self.db.wrap_database_errors:\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\u2026
if params is None:
# params default might be backend specific.
return self.cursor.execute(sql)
else:
return self.cursor.execute(sql, params)
| Variable | \nValue | \n
|---|---|
| ignored_wrapper_args | \n(False,\n {'connection': <DatabaseWrapper vendor='postgresql' alias='default'>,\n 'cursor': <django.db.backends.postgresql.base.CursorDebugWrapper object at 0x000002D902B83CB0>}) | \n
| params | \n(datetime.datetime(2025, 5, 24, 9, 12, 29, 157289, tzinfo=datetime.timezone.utc),\n datetime.datetime(2025, 5, 24, 9, 12, 29, 157289, tzinfo=datetime.timezone.utc),\n 2,\n 2,\n '\u0645\u062c\u062a\u0628\u06cc \u0630\u0648\u0627\u0644\u0641\u0642\u0627\u0631\u06cc-4061080598',\n '\u0645\u062c\u062a\u0628\u06cc \u0630\u0648\u0627\u0644\u0641\u0642\u0627\u0631\u06cc-4061080598',\n False,\n 1,\n 1,\n 1,\n 1,\n 'L',\n 1,\n datetime.datetime(2025, 5, 13, 8, 56, 51, 644360, tzinfo=zoneinfo.ZoneInfo(key='UTC')),\n 2) | \n
| self | \n<django.db.backends.postgresql.base.CursorDebugWrapper object at 0x000002D902B83CB0> | \n
| sql | \n('INSERT INTO "livestock_livestock" ("create_date", "modify_date", '\n '"created_by_id", "modified_by_id", "creator_info", "modifier_info", "trash", '\n '"herd_id", "tag_id", "type_id", "use_type_id", "weight_type", "species_id", '\n '"birthdate", "gender") VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, '\n '%s, %s, %s, %s) RETURNING "livestock_livestock"."id"') | \n
D:\\Software\\env\\Lib\\site-packages\\django\\db\\utils.py, line 91, in __exit__\n \n\n \n db_exc_type = getattr(self.wrapper.Database, dj_exc_type.__name__)
if issubclass(exc_type, db_exc_type):
dj_exc_value = dj_exc_type(*exc_value.args)
# Only set the 'errors_occurred' flag for errors that may make
# the connection unusable.
if dj_exc_type not in (DataError, IntegrityError):
self.wrapper.errors_occurred = True
raise dj_exc_value.with_traceback(traceback) from exc_value\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\u2026
def __call__(self, func):
# Note that we are intentionally not using @wraps here for performance
# reasons. Refs #21109.
def inner(*args, **kwargs):
with self:
| Variable | \nValue | \n
|---|---|
| db_exc_type | \n<class 'psycopg2.IntegrityError'> | \n
| dj_exc_type | \n<class 'django.db.utils.IntegrityError'> | \n
| dj_exc_value | \nIntegrityError('null value in column "age_by_day" of relation "livestock_livestock" violates not-null constraint\\nDETAIL: Failing row contains (2, 2025-05-24 09:12:29.157289+00, 2025-05-24 09:12:29.157289+00, f, 2025-05-13 08:56:51.64436+00, 2, 1, 1, null, null, null, L, 1, 1, 1, 2, 2, \u0645\u062c\u062a\u0628\u06cc \u0630\u0648\u0627\u0644\u0641\u0642\u0627\u0631\u06cc-4061080598, \u0645\u062c\u062a\u0628\u06cc \u0630\u0648\u0627\u0644\u0641\u0642\u0627\u0631\u06cc-4061080598).\\n') | \n
| exc_type | \n<class 'psycopg2.errors.NotNullViolation'> | \n
| exc_value | \nNotNullViolation('null value in column "age_by_day" of relation "livestock_livestock" violates not-null constraint\\nDETAIL: Failing row contains (2, 2025-05-24 09:12:29.157289+00, 2025-05-24 09:12:29.157289+00, f, 2025-05-13 08:56:51.64436+00, 2, 1, 1, null, null, null, L, 1, 1, 1, 2, 2, \u0645\u062c\u062a\u0628\u06cc \u0630\u0648\u0627\u0644\u0641\u0642\u0627\u0631\u06cc-4061080598, \u0645\u062c\u062a\u0628\u06cc \u0630\u0648\u0627\u0644\u0641\u0642\u0627\u0631\u06cc-4061080598).\\n') | \n
| self | \n<django.db.utils.DatabaseErrorWrapper object at 0x000002D902C90350> | \n
| traceback | \n<traceback object at 0x000002D902B4D580> | \n
D:\\Software\\env\\Lib\\site-packages\\django\\db\\backends\\utils.py, line 105, in _execute\n \n\n \n warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
self.db.validate_no_broken_transaction()
with self.db.wrap_database_errors:
if params is None:
# params default might be backend specific.
return self.cursor.execute(sql)
else:
return self.cursor.execute(sql, params)\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\u2026
def _executemany(self, sql, param_list, *ignored_wrapper_args):
# Raise a warning during app initialization (stored_app_configs is only
# ever set during testing).
if not apps.ready and not apps.stored_app_configs:
warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
| Variable | \nValue | \n
|---|---|
| ignored_wrapper_args | \n(False,\n {'connection': <DatabaseWrapper vendor='postgresql' alias='default'>,\n 'cursor': <django.db.backends.postgresql.base.CursorDebugWrapper object at 0x000002D902B83CB0>}) | \n
| params | \n(datetime.datetime(2025, 5, 24, 9, 12, 29, 157289, tzinfo=datetime.timezone.utc),\n datetime.datetime(2025, 5, 24, 9, 12, 29, 157289, tzinfo=datetime.timezone.utc),\n 2,\n 2,\n '\u0645\u062c\u062a\u0628\u06cc \u0630\u0648\u0627\u0644\u0641\u0642\u0627\u0631\u06cc-4061080598',\n '\u0645\u062c\u062a\u0628\u06cc \u0630\u0648\u0627\u0644\u0641\u0642\u0627\u0631\u06cc-4061080598',\n False,\n 1,\n 1,\n 1,\n 1,\n 'L',\n 1,\n datetime.datetime(2025, 5, 13, 8, 56, 51, 644360, tzinfo=zoneinfo.ZoneInfo(key='UTC')),\n 2) | \n
| self | \n<django.db.backends.postgresql.base.CursorDebugWrapper object at 0x000002D902B83CB0> | \n
| sql | \n('INSERT INTO "livestock_livestock" ("create_date", "modify_date", '\n '"created_by_id", "modified_by_id", "creator_info", "modifier_info", "trash", '\n '"herd_id", "tag_id", "type_id", "use_type_id", "weight_type", "species_id", '\n '"birthdate", "gender") VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, '\n '%s, %s, %s, %s) RETURNING "livestock_livestock"."id"') | \n
moji \u0630\u0648\u0627\u0644\u0641\u0642\u0627\u0631\u06cc-None
\n \n\nNo GET data
\n \n\nNo POST data
\n \n\nNo FILES data
\n \n\nNo cookie data
\n \n\n| Variable | \nValue | \n
|---|---|
| ALLUSERSPROFILE | \n'C:\\\\ProgramData' | \n
| APPCODE_VM_OPTIONS | \n'C:\\\\ja-netfilter\\\\vmoptions\\\\appcode.vmoptions' | \n
| APPDATA | \n'C:\\\\Users\\\\Housh8\\\\AppData\\\\Roaming' | \n
| CLION_VM_OPTIONS | \n'C:\\\\ja-netfilter\\\\vmoptions\\\\clion.vmoptions' | \n
| COMMONPROGRAMFILES | \n'C:\\\\Program Files\\\\Common Files' | \n
| COMMONPROGRAMFILES(X86) | \n'C:\\\\Program Files (x86)\\\\Common Files' | \n
| COMMONPROGRAMW6432 | \n'C:\\\\Program Files\\\\Common Files' | \n
| COMPUTERNAME | \n'DESKTOP-77GDGLN' | \n
| COMSPEC | \n'C:\\\\Windows\\\\system32\\\\cmd.exe' | \n
| CONTENT_LENGTH | \n'187' | \n
| CONTENT_TYPE | \n'application/json' | \n
| DATAGRIP_VM_OPTIONS | \n'C:\\\\ja-netfilter\\\\vmoptions\\\\datagrip.vmoptions' | \n
| DATASPELL_VM_OPTIONS | \n'C:\\\\ja-netfilter\\\\vmoptions\\\\dataspell.vmoptions' | \n
| DEVECOSTUDIO_VM_OPTIONS | \n'C:\\\\ja-netfilter\\\\vmoptions\\\\devecostudio.vmoptions' | \n
| DJANGO_SETTINGS_MODULE | \n'Rasaddam_Backend.settings' | \n
| DRIVERDATA | \n'C:\\\\Windows\\\\System32\\\\Drivers\\\\DriverData' | \n
| EFC_9236 | \n'1' | \n
| FPS_BROWSER_APP_PROFILE_STRING | \n'Internet Explorer' | \n
| FPS_BROWSER_USER_PROFILE_STRING | \n'Default' | \n
| GATEWAY_INTERFACE | \n'CGI/1.1' | \n
| GATEWAY_VM_OPTIONS | \n'C:\\\\ja-netfilter\\\\vmoptions\\\\gateway.vmoptions' | \n
| GOLAND_VM_OPTIONS | \n'C:\\\\ja-netfilter\\\\vmoptions\\\\goland.vmoptions' | \n
| HOMEDRIVE | \n'C:' | \n
| HOMEPATH | \n'\\\\Users\\\\Housh8' | \n
| HTTP_ACCEPT | \n'*/*' | \n
| HTTP_ACCEPT_ENCODING | \n'gzip, deflate, br' | \n
| HTTP_AUTHORIZATION | \n('Bearer '\n 'eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNzQ4MTUwNTc5LCJpYXQiOjE3NDgwNjQxNzksImp0aSI6ImY1NjA3MGQ5M2Q3ZTQ2OWY5YjUzZTBiNWU0Yzg4ZGI4IiwidXNlcl9pZCI6MiwibmFtZSI6Im1vamkiLCJtb2JpbGUiOiIwOTM4OTY1NyIsIm5hdGlvbmFsX2NvZGUiOiI0MDYxMDgwNTk4In0.FKrYU38zStPGnrzgoDzvAd5EAiCDuoAFrHPXncAknok') | \n
| HTTP_CACHE_CONTROL | \n'no-cache' | \n
| HTTP_CONNECTION | \n'keep-alive' | \n
| HTTP_HOST | \n'127.0.0.1:8000' | \n
| HTTP_POSTMAN_TOKEN | \n'********************' | \n
| HTTP_USER_AGENT | \n'PostmanRuntime/7.44.0' | \n
| IDEA_INITIAL_DIRECTORY | \n'C:\\\\Users\\\\Housh8\\\\Desktop' | \n
| IDEA_VM_OPTIONS | \n'C:\\\\ja-netfilter\\\\vmoptions\\\\idea.vmoptions' | \n
| JETBRAINSCLIENT_VM_OPTIONS | \n'C:\\\\ja-netfilter\\\\vmoptions\\\\jetbrainsclient.vmoptions' | \n
| JETBRAINS_CLIENT_VM_OPTIONS | \n'C:\\\\ja-netfilter\\\\vmoptions\\\\jetbrains_client.vmoptions' | \n
| LOCALAPPDATA | \n'C:\\\\Users\\\\Housh8\\\\AppData\\\\Local' | \n
| LOGONSERVER | \n'\\\\\\\\DESKTOP-77GDGLN' | \n
| NODEJS | \n'C:\\\\ProgramData\\\\Microsoft\\\\Windows\\\\Start Menu\\\\Programs\\\\Node.js' | \n
| NUMBER_OF_PROCESSORS | \n'4' | \n
| NVM_HOME | \n'C:\\\\Users\\\\Housh8\\\\AppData\\\\Local\\\\nvm' | \n
| NVM_SYMLINK | \n'C:\\\\nvm4w\\\\nodejs' | \n
| ONEDRIVE | \n'C:\\\\Users\\\\Housh8\\\\OneDrive' | \n
| OS | \n'Windows_NT' | \n
| PATH | \n('D:\\\\Software\\\\env\\\\Scripts;C:\\\\Windows\\\\system32;C:\\\\Windows;C:\\\\Windows\\\\System32\\\\Wbem;C:\\\\Windows\\\\System32\\\\WindowsPowerShell\\\\v1.0\\\\;C:\\\\Windows\\\\System32\\\\OpenSSH\\\\;C:\\\\Users\\\\Housh8\\\\AppData\\\\Local\\\\nvm;C:\\\\nvm4w\\\\nodejs;C:\\\\Program '\n 'Files\\\\Git\\\\cmd;C:\\\\Program '\n 'Files\\\\nodejs\\\\;D:\\\\Software\\\\python-3.12.0\\\\Scripts\\\\;D:\\\\Software\\\\python-3.12.0\\\\;D:\\\\Software\\\\python\\\\Scripts\\\\;D:\\\\Software\\\\python\\\\;C:\\\\Users\\\\Housh8\\\\AppData\\\\Local\\\\Programs\\\\Python\\\\Launcher\\\\;C:\\\\Users\\\\Housh8\\\\AppData\\\\Local\\\\Microsoft\\\\WindowsApps;C:\\\\Users\\\\Housh8\\\\AppData\\\\Local\\\\Programs\\\\Microsoft '\n 'VS '\n 'Code\\\\bin;C:\\\\Users\\\\Housh8\\\\AppData\\\\Local\\\\nvm;C:\\\\nvm4w\\\\nodejs;C:\\\\Users\\\\Housh8\\\\AppData\\\\Roaming\\\\npm') | \n
| PATHEXT | \n'.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC' | \n
| PATH_INFO | \n'/livestock/web/api/v1/livestock/' | \n
| PHPSTORM_VM_OPTIONS | \n'C:\\\\ja-netfilter\\\\vmoptions\\\\phpstorm.vmoptions' | \n
| PROCESSOR_ARCHITECTURE | \n'AMD64' | \n
| PROCESSOR_IDENTIFIER | \n'Intel64 Family 6 Model 158 Stepping 9, GenuineIntel' | \n
| PROCESSOR_LEVEL | \n'6' | \n
| PROCESSOR_REVISION | \n'9e09' | \n
| PROGRAMDATA | \n'C:\\\\ProgramData' | \n
| PROGRAMFILES | \n'C:\\\\Program Files' | \n
| PROGRAMFILES(X86) | \n'C:\\\\Program Files (x86)' | \n
| PROGRAMW6432 | \n'C:\\\\Program Files' | \n
| PROMPT | \n'(env) $P$G' | \n
| PSMODULEPATH | \n('C:\\\\Program '\n 'Files\\\\WindowsPowerShell\\\\Modules;C:\\\\Windows\\\\system32\\\\WindowsPowerShell\\\\v1.0\\\\Modules') | \n
| PUBLIC | \n'C:\\\\Users\\\\Public' | \n
| PYCHARM_VM_OPTIONS | \n'C:\\\\ja-netfilter\\\\vmoptions\\\\pycharm.vmoptions' | \n
| QUERY_STRING | \n'' | \n
| REMOTE_ADDR | \n'127.0.0.1' | \n
| REMOTE_HOST | \n'' | \n
| REQUEST_METHOD | \n'POST' | \n
| RIDER_VM_OPTIONS | \n'C:\\\\ja-netfilter\\\\vmoptions\\\\rider.vmoptions' | \n
| RUBYMINE_VM_OPTIONS | \n'C:\\\\ja-netfilter\\\\vmoptions\\\\rubymine.vmoptions' | \n
| RUN_MAIN | \n'true' | \n
| RUSTROVER_VM_OPTIONS | \n'C:\\\\ja-netfilter\\\\vmoptions\\\\RustRover.vmoptions' | \n
| SCRIPT_NAME | \n'' | \n
| SERVER_NAME | \n'DESKTOP-77GDGLN' | \n
| SERVER_PORT | \n'8000' | \n
| SERVER_PROTOCOL | \n'HTTP/1.1' | \n
| SERVER_SOFTWARE | \n'WSGIServer/0.2' | \n
| SESSIONNAME | \n'Console' | \n
| STUDIO_VM_OPTIONS | \n'C:\\\\ja-netfilter\\\\vmoptions\\\\studio.vmoptions' | \n
| SYSTEMDRIVE | \n'C:' | \n
| SYSTEMROOT | \n'C:\\\\Windows' | \n
| TEMP | \n'C:\\\\Users\\\\Housh8\\\\AppData\\\\Local\\\\Temp' | \n
| TERMINAL_EMULATOR | \n'JetBrains-JediTerm' | \n
| TERM_SESSION_ID | \n'47718519-d082-4e63-ad0c-0703ee64fd3f' | \n
| TMP | \n'C:\\\\Users\\\\Housh8\\\\AppData\\\\Local\\\\Temp' | \n
| USERDOMAIN | \n'DESKTOP-77GDGLN' | \n
| USERDOMAIN_ROAMINGPROFILE | \n'DESKTOP-77GDGLN' | \n
| USERNAME | \n'Housh8' | \n
| USERPROFILE | \n'C:\\\\Users\\\\Housh8' | \n
| VIRTUAL_ENV | \n'D:\\\\Software\\\\env' | \n
| WEBIDE_VM_OPTIONS | \n'C:\\\\ja-netfilter\\\\vmoptions\\\\webide.vmoptions' | \n
| WEBSTORM_VM_OPTIONS | \n'C:\\\\ja-netfilter\\\\vmoptions\\\\webstorm.vmoptions' | \n
| WINDIR | \n'C:\\\\Windows' | \n
| _OLD_VIRTUAL_PATH | \n('C:\\\\Windows\\\\system32;C:\\\\Windows;C:\\\\Windows\\\\System32\\\\Wbem;C:\\\\Windows\\\\System32\\\\WindowsPowerShell\\\\v1.0\\\\;C:\\\\Windows\\\\System32\\\\OpenSSH\\\\;C:\\\\Users\\\\Housh8\\\\AppData\\\\Local\\\\nvm;C:\\\\nvm4w\\\\nodejs;C:\\\\Program '\n 'Files\\\\Git\\\\cmd;C:\\\\Program '\n 'Files\\\\nodejs\\\\;D:\\\\Software\\\\python-3.12.0\\\\Scripts\\\\;D:\\\\Software\\\\python-3.12.0\\\\;D:\\\\Software\\\\python\\\\Scripts\\\\;D:\\\\Software\\\\python\\\\;C:\\\\Users\\\\Housh8\\\\AppData\\\\Local\\\\Programs\\\\Python\\\\Launcher\\\\;C:\\\\Users\\\\Housh8\\\\AppData\\\\Local\\\\Microsoft\\\\WindowsApps;C:\\\\Users\\\\Housh8\\\\AppData\\\\Local\\\\Programs\\\\Microsoft '\n 'VS '\n 'Code\\\\bin;C:\\\\Users\\\\Housh8\\\\AppData\\\\Local\\\\nvm;C:\\\\nvm4w\\\\nodejs;C:\\\\Users\\\\Housh8\\\\AppData\\\\Roaming\\\\npm') | \n
| _OLD_VIRTUAL_PROMPT | \n'$P$G' | \n
| __INTELLIJ_COMMAND_HISTFILE__ | \n'C:\\\\Users\\\\Housh8\\\\AppData\\\\Local\\\\JetBrains\\\\PyCharm2021.3\\\\terminal\\\\history\\\\Rasaddam_Backend-history' | \n
| wsgi.errors | \n<_io.TextIOWrapper name='<stderr>' mode='w' encoding='utf-8'> | \n
| wsgi.file_wrapper | \n<class 'wsgiref.util.FileWrapper'> | \n
| wsgi.input | \n<django.core.handlers.wsgi.LimitedStream object at 0x000002D902954C10> | \n
| wsgi.multiprocess | \nFalse | \n
| wsgi.multithread | \nTrue | \n
| wsgi.run_once | \nFalse | \n
| wsgi.url_scheme | \n'http' | \n
| wsgi.version | \n(1, 0) | \n
Rasaddam_Backend.settings| Setting | \nValue | \n
|---|---|
| ABSOLUTE_URL_OVERRIDES | \n{} | \n
| ADMINS | \n[] | \n
| ALLOWED_HOSTS | \n['localhost', '127.0.0.1', 'https://rasadyar.net/', 'https://localhost:9200'] | \n
| APPEND_SLASH | \nTrue | \n
| AUTHENTICATION_BACKENDS | \n['django.contrib.auth.backends.ModelBackend'] | \n
| AUTH_PASSWORD_VALIDATORS | \n'********************' | \n
| AUTH_USER_MODEL | \n'authentication.User' | \n
| BASE_DIR | \nWindowsPath('D:/Project/Rasaddam_Backend') | \n
| CACHES | \n{'default': {'BACKEND': 'django_redis.cache.RedisCache',\n 'KEY_PREFIX': '********************',\n 'LOCATION': 'redis://:ydnW4hwzuDRYcTX3FWCHgQ1f@apo.liara.cloud:33740/0',\n 'OPTIONS': {'CLIENT_CLASS': 'django_redis.client.DefaultClient'}},\n 'memcache': {'BACKEND': 'django.core.cache.backends.memcached.PyMemcacheCache',\n 'LOCATION': '127.0.0.1:11211'}} | \n
| CACHE_MIDDLEWARE_ALIAS | \n'default' | \n
| CACHE_MIDDLEWARE_KEY_PREFIX | \n'********************' | \n
| CACHE_MIDDLEWARE_SECONDS | \n600 | \n
| CORS_ALLOWED_ORIGINS | \n('http://localhost:8080',\n 'http://127.0.0.1:8080',\n 'http://127.0.0.1:3000',\n 'http://localhost:3000',\n 'https://rasadyar.net') | \n
| CORS_ORIGIN_ALLOW_ALL | \nTrue | \n
| CORS_ORIGIN_WHITELIST | \n('http://localhost:8080',\n 'http://127.0.0.1:8080',\n 'http://127.0.0.1:3000',\n 'http://localhost:3000',\n 'https://rasadyar.net') | \n
| CSRF_COOKIE_AGE | \n31449600 | \n
| CSRF_COOKIE_DOMAIN | \nNone | \n
| CSRF_COOKIE_HTTPONLY | \nFalse | \n
| CSRF_COOKIE_NAME | \n'csrftoken' | \n
| CSRF_COOKIE_PATH | \n'/' | \n
| CSRF_COOKIE_SAMESITE | \n'Lax' | \n
| CSRF_COOKIE_SECURE | \nFalse | \n
| CSRF_FAILURE_VIEW | \n'django.views.csrf.csrf_failure' | \n
| CSRF_HEADER_NAME | \n'HTTP_X_CSRFTOKEN' | \n
| CSRF_TRUSTED_ORIGINS | \n[] | \n
| CSRF_USE_SESSIONS | \nFalse | \n
| DATABASES | \n{'default': {'ATOMIC_REQUESTS': False,\n 'AUTOCOMMIT': True,\n 'CONN_HEALTH_CHECKS': False,\n 'CONN_MAX_AGE': 0,\n 'ENGINE': 'django.db.backends.postgresql_psycopg2',\n 'HOST': 'monte-rosa.liara.cloud',\n 'NAME': 'postgres',\n 'OPTIONS': {},\n 'PASSWORD': '********************',\n 'PORT': '32718',\n 'TEST': {'CHARSET': None,\n 'COLLATION': None,\n 'MIGRATE': True,\n 'MIRROR': None,\n 'NAME': None},\n 'TIME_ZONE': None,\n 'USER': 'root'}} | \n
| DATABASE_ROUTERS | \n[] | \n
| DATA_UPLOAD_MAX_MEMORY_SIZE | \n50242880 | \n
| DATA_UPLOAD_MAX_NUMBER_FIELDS | \n1000 | \n
| DATA_UPLOAD_MAX_NUMBER_FILES | \n100 | \n
| DATETIME_FORMAT | \n'%Y-%m-%d %H:%M:%S' | \n
| DATETIME_INPUT_FORMATS | \n['%Y-%m-%d %H:%M:%S',\n '%Y-%m-%d %H:%M:%S.%f',\n '%Y-%m-%d %H:%M',\n '%m/%d/%Y %H:%M:%S',\n '%m/%d/%Y %H:%M:%S.%f',\n '%m/%d/%Y %H:%M',\n '%m/%d/%y %H:%M:%S',\n '%m/%d/%y %H:%M:%S.%f',\n '%m/%d/%y %H:%M'] | \n
| DATE_FORMAT | \n'N j, Y' | \n
| DATE_INPUT_FORMATS | \n['%Y-%m-%d',\n '%m/%d/%Y',\n '%m/%d/%y',\n '%b %d %Y',\n '%b %d, %Y',\n '%d %b %Y',\n '%d %b, %Y',\n '%B %d %Y',\n '%B %d, %Y',\n '%d %B %Y',\n '%d %B, %Y'] | \n
| DEBUG | \nTrue | \n
| DEBUG_PROPAGATE_EXCEPTIONS | \nFalse | \n
| DECIMAL_SEPARATOR | \n'.' | \n
| DEFAULT_AUTO_FIELD | \n'django.db.models.BigAutoField' | \n
| DEFAULT_CHARSET | \n'utf-8' | \n
| DEFAULT_EXCEPTION_REPORTER | \n'django.views.debug.ExceptionReporter' | \n
| DEFAULT_EXCEPTION_REPORTER_FILTER | \n'django.views.debug.SafeExceptionReporterFilter' | \n
| DEFAULT_FILE_STORAGE | \n'django.core.files.storage.FileSystemStorage' | \n
| DEFAULT_FROM_EMAIL | \n'webmaster@localhost' | \n
| DEFAULT_INDEX_TABLESPACE | \n'' | \n
| DEFAULT_TABLESPACE | \n'' | \n
| DISALLOWED_USER_AGENTS | \n[] | \n
| ELASTICSEARCH_DSL | \n{'default': {'hosts': 'http://monte-rosa.liara.cloud:31157',\n 'http_auth': ('elastic', 'uYkiQ860vLW8DIbWpNjqtz2B')}} | \n
| EMAIL_BACKEND | \n'django.core.mail.backends.smtp.EmailBackend' | \n
| EMAIL_HOST | \n'localhost' | \n
| EMAIL_HOST_PASSWORD | \n'********************' | \n
| EMAIL_HOST_USER | \n'' | \n
| EMAIL_PORT | \n25 | \n
| EMAIL_SSL_CERTFILE | \nNone | \n
| EMAIL_SSL_KEYFILE | \n'********************' | \n
| EMAIL_SUBJECT_PREFIX | \n'[Django] ' | \n
| EMAIL_TIMEOUT | \nNone | \n
| EMAIL_USE_LOCALTIME | \nFalse | \n
| EMAIL_USE_SSL | \nFalse | \n
| EMAIL_USE_TLS | \nFalse | \n
| FILE_UPLOAD_DIRECTORY_PERMISSIONS | \nNone | \n
| FILE_UPLOAD_HANDLERS | \n['django.core.files.uploadhandler.MemoryFileUploadHandler',\n 'django.core.files.uploadhandler.TemporaryFileUploadHandler'] | \n
| FILE_UPLOAD_MAX_MEMORY_SIZE | \n2621440 | \n
| FILE_UPLOAD_PERMISSIONS | \n420 | \n
| FILE_UPLOAD_TEMP_DIR | \nNone | \n
| FIRST_DAY_OF_WEEK | \n0 | \n
| FIXTURE_DIRS | \n[] | \n
| FORCE_SCRIPT_NAME | \nNone | \n
| FORMAT_MODULE_PATH | \nNone | \n
| FORMS_URLFIELD_ASSUME_HTTPS | \nFalse | \n
| FORM_RENDERER | \n'django.forms.renderers.DjangoTemplates' | \n
| IGNORABLE_404_URLS | \n[] | \n
| INSTALLED_APPS | \n['django.contrib.admin',\n 'django.contrib.auth',\n 'django.contrib.contenttypes',\n 'django.contrib.sessions',\n 'django.contrib.messages',\n 'django.contrib.staticfiles',\n 'django_elasticsearch_dsl',\n 'django_elasticsearch_dsl_drf',\n 'rest_framework',\n 'corsheaders',\n 'rest_framework_simplejwt',\n 'rest_framework_simplejwt.token_blacklist',\n 'apps.authentication.apps.AuthenticationConfig',\n 'apps.authorization.apps.AuthorizationConfig',\n 'apps.captcha_app.apps.CaptchaAppConfig',\n 'apps.core.apps.CoreConfig',\n 'apps.herd.apps.HerdAppConfig',\n 'apps.livestock.apps.LivestockConfig',\n 'apps.pos_machine.apps.PosMachineConfig',\n 'apps.tag.apps.TagConfig',\n 'apps.warehouse.apps.WarehouseConfig',\n 'apps.search.apps.SearchConfig',\n 'apps.log.apps.LogConfig',\n 'rest_captcha',\n 'captcha',\n 'drf_yasg'] | \n
| INTERNAL_IPS | \n[] | \n
| LANGUAGES | \n[('af', 'Afrikaans'),\n ('ar', 'Arabic'),\n ('ar-dz', 'Algerian Arabic'),\n ('ast', 'Asturian'),\n ('az', 'Azerbaijani'),\n ('bg', 'Bulgarian'),\n ('be', 'Belarusian'),\n ('bn', 'Bengali'),\n ('br', 'Breton'),\n ('bs', 'Bosnian'),\n ('ca', 'Catalan'),\n ('ckb', 'Central Kurdish (Sorani)'),\n ('cs', 'Czech'),\n ('cy', 'Welsh'),\n ('da', 'Danish'),\n ('de', 'German'),\n ('dsb', 'Lower Sorbian'),\n ('el', 'Greek'),\n ('en', 'English'),\n ('en-au', 'Australian English'),\n ('en-gb', 'British English'),\n ('eo', 'Esperanto'),\n ('es', 'Spanish'),\n ('es-ar', 'Argentinian Spanish'),\n ('es-co', 'Colombian Spanish'),\n ('es-mx', 'Mexican Spanish'),\n ('es-ni', 'Nicaraguan Spanish'),\n ('es-ve', 'Venezuelan Spanish'),\n ('et', 'Estonian'),\n ('eu', 'Basque'),\n ('fa', 'Persian'),\n ('fi', 'Finnish'),\n ('fr', 'French'),\n ('fy', 'Frisian'),\n ('ga', 'Irish'),\n ('gd', 'Scottish Gaelic'),\n ('gl', 'Galician'),\n ('he', 'Hebrew'),\n ('hi', 'Hindi'),\n ('hr', 'Croatian'),\n ('hsb', 'Upper Sorbian'),\n ('hu', 'Hungarian'),\n ('hy', 'Armenian'),\n ('ia', 'Interlingua'),\n ('id', 'Indonesian'),\n ('ig', 'Igbo'),\n ('io', 'Ido'),\n ('is', 'Icelandic'),\n ('it', 'Italian'),\n ('ja', 'Japanese'),\n ('ka', 'Georgian'),\n ('kab', 'Kabyle'),\n ('kk', 'Kazakh'),\n ('km', 'Khmer'),\n ('kn', 'Kannada'),\n ('ko', 'Korean'),\n ('ky', 'Kyrgyz'),\n ('lb', 'Luxembourgish'),\n ('lt', 'Lithuanian'),\n ('lv', 'Latvian'),\n ('mk', 'Macedonian'),\n ('ml', 'Malayalam'),\n ('mn', 'Mongolian'),\n ('mr', 'Marathi'),\n ('ms', 'Malay'),\n ('my', 'Burmese'),\n ('nb', 'Norwegian Bokm\u00e5l'),\n ('ne', 'Nepali'),\n ('nl', 'Dutch'),\n ('nn', 'Norwegian Nynorsk'),\n ('os', 'Ossetic'),\n ('pa', 'Punjabi'),\n ('pl', 'Polish'),\n ('pt', 'Portuguese'),\n ('pt-br', 'Brazilian Portuguese'),\n ('ro', 'Romanian'),\n ('ru', 'Russian'),\n ('sk', 'Slovak'),\n ('sl', 'Slovenian'),\n ('sq', 'Albanian'),\n ('sr', 'Serbian'),\n ('sr-latn', 'Serbian Latin'),\n ('sv', 'Swedish'),\n ('sw', 'Swahili'),\n ('ta', 'Tamil'),\n ('te', 'Telugu'),\n ('tg', 'Tajik'),\n ('th', 'Thai'),\n ('tk', 'Turkmen'),\n ('tr', 'Turkish'),\n ('tt', 'Tatar'),\n ('udm', 'Udmurt'),\n ('ug', 'Uyghur'),\n ('uk', 'Ukrainian'),\n ('ur', 'Urdu'),\n ('uz', 'Uzbek'),\n ('vi', 'Vietnamese'),\n ('zh-hans', 'Simplified Chinese'),\n ('zh-hant', 'Traditional Chinese')] | \n
| LANGUAGES_BIDI | \n['he', 'ar', 'ar-dz', 'ckb', 'fa', 'ug', 'ur'] | \n
| LANGUAGE_CODE | \n'en-us' | \n
| LANGUAGE_COOKIE_AGE | \nNone | \n
| LANGUAGE_COOKIE_DOMAIN | \nNone | \n
| LANGUAGE_COOKIE_HTTPONLY | \nFalse | \n
| LANGUAGE_COOKIE_NAME | \n'django_language' | \n
| LANGUAGE_COOKIE_PATH | \n'/' | \n
| LANGUAGE_COOKIE_SAMESITE | \nNone | \n
| LANGUAGE_COOKIE_SECURE | \nFalse | \n
| LOCALE_PATHS | \n[] | \n
| LOGGING | \n{} | \n
| LOGGING_CONFIG | \n'logging.config.dictConfig' | \n
| LOGIN_REDIRECT_URL | \n'/accounts/profile/' | \n
| LOGIN_URL | \n'rest_framework:login' | \n
| LOGOUT_REDIRECT_URL | \nNone | \n
| LOGOUT_URL | \n'rest_framework:logout' | \n
| MANAGERS | \n[] | \n
| MEDIA_ROOT | \n'' | \n
| MEDIA_URL | \n'/' | \n
| MESSAGE_STORAGE | \n'django.contrib.messages.storage.fallback.FallbackStorage' | \n
| MIDDLEWARE | \n['django.middleware.security.SecurityMiddleware',\n 'django.contrib.sessions.middleware.SessionMiddleware',\n 'django.middleware.common.CommonMiddleware',\n 'django.middleware.csrf.CsrfViewMiddleware',\n 'django.contrib.auth.middleware.AuthenticationMiddleware',\n 'django.contrib.messages.middleware.MessageMiddleware',\n 'django.middleware.clickjacking.XFrameOptionsMiddleware',\n 'crum.CurrentRequestUserMiddleware',\n 'apps.log.middlewares.SaveLog'] | \n
| MIGRATION_MODULES | \n{} | \n
| MONGODB_DATABASES | \n{'default': {'host': '', 'name': 'mongodb', 'tz_aware': True}} | \n
| MONTH_DAY_FORMAT | \n'F j' | \n
| NUMBER_GROUPING | \n0 | \n
| PASSWORD_HASHERS | \n'********************' | \n
| PASSWORD_RESET_TIMEOUT | \n'********************' | \n
| PREPEND_WWW | \nFalse | \n
| REST_CAPTCHA | \n{'CAPTCHA_BACKGROUND_COLOR': '#ffffff',\n 'CAPTCHA_CACHE': 'default',\n 'CAPTCHA_CACHE_KEY': '********************',\n 'CAPTCHA_FONT_SIZE': 35,\n 'CAPTCHA_FOREGROUND_COLOR': '#000000',\n 'CAPTCHA_IMAGE_SIZE': (90, 20),\n 'CAPTCHA_LENGTH': 6,\n 'CAPTCHA_LETTER_ROTATION': (-35, 35),\n 'CAPTCHA_TIMEOUT': 300,\n 'FILTER_FUNCTION': 'rest_captcha.captcha.filter_default',\n 'NOISE_FUNCTION': 'apps.captcha_app.api.v1.serializers.noise_default'} | \n
| REST_FRAMEWORK | \n{'DEFAULT_AUTHENTICATION_CLASSES': ('rest_framework_simplejwt.authentication.JWTAuthentication',\n 'rest_framework.authentication.SessionAuthentication',\n 'rest_framework.authentication.BasicAuthentication'),\n 'DEFAULT_PAGINATION_CLASS': 'rest_framework.pagination.LimitOffsetPagination',\n 'DEFAULT_PERMISSION_CLASSES': ('rest_framework.permissions.IsAuthenticated',),\n 'DEFAULT_SCHEMA_CLASS': 'rest_framework.schemas.coreapi.AutoSchema',\n 'PAGE_SIZE': 25} | \n
| ROOT_URLCONF | \n'Rasaddam_Backend.urls' | \n
| SECRET_KEY | \n'********************' | \n
| SECRET_KEY_FALLBACKS | \n'********************' | \n
| SECURE_CONTENT_TYPE_NOSNIFF | \nTrue | \n
| SECURE_CROSS_ORIGIN_OPENER_POLICY | \n'same-origin' | \n
| SECURE_HSTS_INCLUDE_SUBDOMAINS | \nFalse | \n
| SECURE_HSTS_PRELOAD | \nFalse | \n
| SECURE_HSTS_SECONDS | \n0 | \n
| SECURE_PROXY_SSL_HEADER | \n('HTTP_X_FORWARDED_PROTO', 'https') | \n
| SECURE_REDIRECT_EXEMPT | \n[] | \n
| SECURE_REFERRER_POLICY | \n'same-origin' | \n
| SECURE_SSL_HOST | \nNone | \n
| SECURE_SSL_REDIRECT | \nFalse | \n
| SERVER_EMAIL | \n'root@localhost' | \n
| SESSION_CACHE_ALIAS | \n'default' | \n
| SESSION_COOKIE_AGE | \n1209600 | \n
| SESSION_COOKIE_DOMAIN | \nNone | \n
| SESSION_COOKIE_HTTPONLY | \nTrue | \n
| SESSION_COOKIE_NAME | \n'sessionid' | \n
| SESSION_COOKIE_PATH | \n'/' | \n
| SESSION_COOKIE_SAMESITE | \n'Lax' | \n
| SESSION_COOKIE_SECURE | \nFalse | \n
| SESSION_ENGINE | \n'django.contrib.sessions.backends.db' | \n
| SESSION_EXPIRE_AT_BROWSER_CLOSE | \nFalse | \n
| SESSION_FILE_PATH | \nNone | \n
| SESSION_SAVE_EVERY_REQUEST | \nFalse | \n
| SESSION_SERIALIZER | \n'django.contrib.sessions.serializers.JSONSerializer' | \n
| SETTINGS_MODULE | \n'Rasaddam_Backend.settings' | \n
| SHORT_DATETIME_FORMAT | \n'm/d/Y P' | \n
| SHORT_DATE_FORMAT | \n'm/d/Y' | \n
| SIGNING_BACKEND | \n'django.core.signing.TimestampSigner' | \n
| SILENCED_SYSTEM_CHECKS | \n[] | \n
| SIMPLE_JWT | \n{'ACCESS_TOKEN_LIFETIME': '********************',\n 'ALGORITHM': 'HS256',\n 'AUDIENCE': None,\n 'AUTH_HEADER_NAME': 'HTTP_AUTHORIZATION',\n 'AUTH_HEADER_TYPES': ('Bearer',),\n 'AUTH_TOKEN_CLASSES': '********************',\n 'BLACKLIST_AFTER_ROTATION': False,\n 'ISSUER': None,\n 'JSON_ENCODER': None,\n 'JTI_CLAIM': 'jti',\n 'JWK_URL': None,\n 'LEEWAY': 0,\n 'REFRESH_TOKEN_LIFETIME': '********************',\n 'ROTATE_REFRESH_TOKENS': '********************',\n 'SIGNING_KEY': '********************',\n 'SLIDING_TOKEN_LIFETIME': '********************',\n 'SLIDING_TOKEN_OBTAIN_SERIALIZER': '********************',\n 'SLIDING_TOKEN_REFRESH_EXP_CLAIM': '********************',\n 'SLIDING_TOKEN_REFRESH_LIFETIME': '********************',\n 'SLIDING_TOKEN_REFRESH_SERIALIZER': '********************',\n 'TOKEN_BLACKLIST_SERIALIZER': '********************',\n 'TOKEN_OBTAIN_SERIALIZER': '********************',\n 'TOKEN_REFRESH_SERIALIZER': '********************',\n 'TOKEN_TYPE_CLAIM': '********************',\n 'TOKEN_USER_CLASS': '********************',\n 'TOKEN_VERIFY_SERIALIZER': '********************',\n 'UPDATE_LAST_LOGIN': False,\n 'USER_AUTHENTICATION_RULE': 'rest_framework_simplejwt.authentication.default_user_authentication_rule',\n 'USER_ID_CLAIM': 'user_id',\n 'USER_ID_FIELD': 'id',\n 'VERIFYING_KEY': '********************'} | \n
| STATICFILES_DIRS | \n[] | \n
| STATICFILES_FINDERS | \n['django.contrib.staticfiles.finders.FileSystemFinder',\n 'django.contrib.staticfiles.finders.AppDirectoriesFinder'] | \n
| STATICFILES_STORAGE | \n'django.contrib.staticfiles.storage.StaticFilesStorage' | \n
| STATIC_ROOT | \nNone | \n
| STATIC_URL | \n'/static/' | \n
| STORAGES | \n{'default': {'BACKEND': 'django.core.files.storage.FileSystemStorage'},\n 'staticfiles': {'BACKEND': 'django.contrib.staticfiles.storage.StaticFilesStorage'}} | \n
| SWAGGER_SETTINGS | \n{'SECURITY_DEFINITIONS': {'Bearer': {'in': 'header',\n 'name': 'Authorization',\n 'type': 'apiKey'},\n 'basic': {'type': 'basic'}},\n 'USE_SESSION_AUTH': True} | \n
| TEMPLATES | \n[{'APP_DIRS': True,\n 'BACKEND': 'django.template.backends.django.DjangoTemplates',\n 'DIRS': [],\n 'OPTIONS': {'context_processors': ['django.template.context_processors.request',\n 'django.contrib.auth.context_processors.auth',\n 'django.contrib.messages.context_processors.messages']}}] | \n
| TEST_NON_SERIALIZED_APPS | \n[] | \n
| TEST_RUNNER | \n'django.test.runner.DiscoverRunner' | \n
| THOUSAND_SEPARATOR | \n',' | \n
| TIME_FORMAT | \n'P' | \n
| TIME_INPUT_FORMATS | \n['%H:%M:%S', '%H:%M:%S.%f', '%H:%M'] | \n
| TIME_ZONE | \n'UTC' | \n
| USE_I18N | \nTrue | \n
| USE_THOUSAND_SEPARATOR | \nFalse | \n
| USE_TZ | \nTrue | \n
| USE_X_FORWARDED_HOST | \nFalse | \n
| USE_X_FORWARDED_PORT | \nFalse | \n
| WSGI_APPLICATION | \n'Rasaddam_Backend.wsgi.application' | \n
| X_FRAME_OPTIONS | \n'DENY' | \n
| YEAR_MONTH_FORMAT | \n'F Y' | \n
\n You\u2019re seeing this error because you have DEBUG = True in your\n Django settings file. Change that to False, and Django will\n display a standard page generated by the handler for this status code.\n