From b7be596e3307fe77c219f43e5a2e4ab3928b84bd Mon Sep 17 00:00:00 2001 From: Mojtaba-z Date: Wed, 5 Nov 2025 09:25:30 +0330 Subject: [PATCH] log --- logs/django_requests.log | 670 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 670 insertions(+) diff --git a/logs/django_requests.log b/logs/django_requests.log index fd9b716..a304c8c 100644 --- a/logs/django_requests.log +++ b/logs/django_requests.log @@ -1262,3 +1262,673 @@ TypeError: 'NoneType' object is not iterable [2025-11-04 13:56:49,907] INFO django.server | IP: - | Path: - | "GET /product/pos/api/v1/distributions/rancher_distributions/?national_code=4050820765 HTTP/1.1" 200 135 [2025-11-04 14:41:31,421] INFO django.utils.autoreload | IP: - | Path: - | D:\Project\Rasaddam_Backend\apps\product\web\api\v1\serializers\quota_distribution_serializers.py changed, reloading. [2025-11-04 14:41:36,126] INFO django.utils.autoreload | IP: - | Path: - | Watching for file changes with StatReloader +[2025-11-04 14:46:07,879] WARNING django.request | IP: 127.0.0.1 | Path: /pos_device/web/v1/pos/holders_share/ | Bad Request: /pos_device/web/v1/pos/holders_share/ +[2025-11-04 14:46:07,879] WARNING django.server | IP: - | Path: - | "POST /pos_device/web/v1/pos/holders_share/ HTTP/1.1" 400 161 +[2025-11-04 14:46:17,410] INFO django.utils.autoreload | IP: - | Path: - | D:\Project\Rasaddam_Backend\apps\product\web\api\v1\serializers\quota_distribution_serializers.py changed, reloading. +[2025-11-04 14:46:22,208] INFO django.utils.autoreload | IP: - | Path: - | Watching for file changes with StatReloader +[2025-11-04 14:46:28,564] WARNING django.request | IP: 127.0.0.1 | Path: /pos_device/web/v1/pos/holders_share/ | Bad Request: /pos_device/web/v1/pos/holders_share/ +[2025-11-04 14:46:28,565] WARNING django.server | IP: - | Path: - | "POST /pos_device/web/v1/pos/holders_share/ HTTP/1.1" 400 161 +[2025-11-04 14:46:38,910] INFO django.utils.autoreload | IP: - | Path: - | D:\Project\Rasaddam_Backend\apps\product\web\api\v1\serializers\quota_distribution_serializers.py changed, reloading. +[2025-11-04 14:46:43,043] INFO django.utils.autoreload | IP: - | Path: - | Watching for file changes with StatReloader +[2025-11-04 14:46:48,181] WARNING django.request | IP: 127.0.0.1 | Path: /pos_device/web/v1/pos/holders_share/ | Bad Request: /pos_device/web/v1/pos/holders_share/ +[2025-11-04 14:46:48,181] WARNING django.server | IP: - | Path: - | "POST /pos_device/web/v1/pos/holders_share/ HTTP/1.1" 400 161 +[2025-11-04 14:48:29,357] INFO django.utils.autoreload | IP: - | Path: - | D:\Project\Rasaddam_Backend\apps\product\web\api\v1\serializers\quota_distribution_serializers.py changed, reloading. +[2025-11-04 14:48:32,974] INFO django.utils.autoreload | IP: - | Path: - | Watching for file changes with StatReloader +[2025-11-04 14:48:39,380] INFO django.server | IP: - | Path: - | "POST /pos_device/web/v1/pos/holders_share/ HTTP/1.1" 201 6444 +[2025-11-04 14:52:02,705] INFO django.server | IP: - | Path: - | "GET /product/pos/api/v1/distributions/rancher_distributions?national_code=4050820765 HTTP/1.1" 301 0 +[2025-11-04 14:52:02,955] INFO django.server | IP: - | Path: - | "GET /product/pos/api/v1/distributions/rancher_distributions/?national_code=4050820765 HTTP/1.1" 200 135 +[2025-11-04 14:53:58,799] INFO django.server | IP: - | Path: - | "GET /product/pos/api/v1/distributions/rancher_distributions?national_code=4050820765 HTTP/1.1" 301 0 +[2025-11-04 14:53:59,056] INFO django.server | IP: - | Path: - | "GET /product/pos/api/v1/distributions/rancher_distributions/?national_code=4050820765 HTTP/1.1" 200 135 +[2025-11-04 16:13:12,819] INFO django.server | IP: - | Path: - | "GET /product/pos/api/v1/distributions/rancher_distributions?national_code=4050820765 HTTP/1.1" 301 0 +[2025-11-04 16:13:13,074] INFO django.server | IP: - | Path: - | "GET /product/pos/api/v1/distributions/rancher_distributions/?national_code=4050820765 HTTP/1.1" 200 135 +[2025-11-04 16:24:38,776] INFO django.server | IP: - | Path: - | "GET /product/pos/api/v1/distributions/rancher_distributions?national_code=4050820765 HTTP/1.1" 301 0 +[2025-11-04 16:24:39,045] INFO django.server | IP: - | Path: - | "GET /product/pos/api/v1/distributions/rancher_distributions/?national_code=4050820765 HTTP/1.1" 200 135 +[2025-11-04 16:27:00,286] INFO django.server | IP: - | Path: - | "GET /product/pos/api/v1/distributions/rancher_distributions?national_code=4050820765 HTTP/1.1" 301 0 +[2025-11-04 16:27:00,496] INFO django.server | IP: - | Path: - | "GET /product/pos/api/v1/distributions/rancher_distributions/?national_code=4050820765 HTTP/1.1" 200 135 +[2025-11-04 16:27:07,603] INFO django.server | IP: - | Path: - | "GET /product/pos/api/v1/distributions/rancher_distributions?national_code=4061080598 HTTP/1.1" 301 0 +[2025-11-04 16:27:07,844] INFO django.server | IP: - | Path: - | "GET /product/pos/api/v1/distributions/rancher_distributions/?national_code=4061080598 HTTP/1.1" 200 135 +[2025-11-04 16:28:35,532] INFO django.server | IP: - | Path: - | "GET /product/pos/api/v1/distributions/rancher_distributions?national_code=4050820765 HTTP/1.1" 301 0 +[2025-11-04 16:28:35,773] INFO django.server | IP: - | Path: - | "GET /product/pos/api/v1/distributions/rancher_distributions/?national_code=4050820765 HTTP/1.1" 200 135 +[2025-11-04 16:31:50,747] INFO django.server | IP: - | Path: - | "GET /product/pos/api/v1/distributions/rancher_distributions?national_code=4050820765 HTTP/1.1" 301 0 +[2025-11-04 16:31:51,039] INFO django.server | IP: - | Path: - | "GET /product/pos/api/v1/distributions/rancher_distributions/?national_code=4050820765 HTTP/1.1" 200 135 +[2025-11-04 16:31:53,034] INFO django.server | IP: - | Path: - | "GET /product/pos/api/v1/distributions/rancher_distributions?national_code=4050820765 HTTP/1.1" 301 0 +[2025-11-04 16:31:53,315] INFO django.server | IP: - | Path: - | "GET /product/pos/api/v1/distributions/rancher_distributions/?national_code=4050820765 HTTP/1.1" 200 135 +[2025-11-04 16:33:07,066] INFO django.utils.autoreload | IP: - | Path: - | D:\Project\Rasaddam_Backend\apps\product\pos\api\v1\viewsets\quota_distribution_api.py changed, reloading. +[2025-11-04 16:33:11,427] INFO django.utils.autoreload | IP: - | Path: - | Watching for file changes with StatReloader +[2025-11-04 16:33:16,056] INFO django.server | IP: - | Path: - | "GET /product/pos/api/v1/distributions/rancher_distributions?national_code=4050820765 HTTP/1.1" 301 0 +[2025-11-04 16:33:16,315] INFO django.server | IP: - | Path: - | "GET /product/pos/api/v1/distributions/rancher_distributions/?national_code=4050820765 HTTP/1.1" 200 135 +[2025-11-04 16:33:26,201] INFO django.utils.autoreload | IP: - | Path: - | D:\Project\Rasaddam_Backend\apps\product\pos\api\v1\viewsets\quota_distribution_api.py changed, reloading. +[2025-11-04 16:33:28,563] INFO django.utils.autoreload | IP: - | Path: - | Watching for file changes with StatReloader +[2025-11-04 16:33:33,531] INFO django.server | IP: - | Path: - | "GET /product/pos/api/v1/distributions/rancher_distributions?national_code=4050820765 HTTP/1.1" 301 0 +[2025-11-04 16:33:33,752] INFO django.server | IP: - | Path: - | "GET /product/pos/api/v1/distributions/rancher_distributions/?national_code=4050820765 HTTP/1.1" 200 135 +[2025-11-04 16:33:36,279] INFO django.server | IP: - | Path: - | "GET /product/pos/api/v1/distributions/rancher_distributions?national_code=4050820765 HTTP/1.1" 301 0 +[2025-11-04 16:33:36,545] INFO django.server | IP: - | Path: - | "GET /product/pos/api/v1/distributions/rancher_distributions/?national_code=4050820765 HTTP/1.1" 200 135 +[2025-11-04 16:33:46,508] INFO django.utils.autoreload | IP: - | Path: - | D:\Project\Rasaddam_Backend\apps\product\pos\api\v1\viewsets\quota_distribution_api.py changed, reloading. +[2025-11-04 16:33:49,342] INFO django.utils.autoreload | IP: - | Path: - | Watching for file changes with StatReloader +[2025-11-04 16:33:55,737] INFO django.server | IP: - | Path: - | "GET /product/pos/api/v1/distributions/rancher_distributions?national_code=4050820765 HTTP/1.1" 301 0 +[2025-11-04 16:33:55,976] INFO django.server | IP: - | Path: - | "GET /product/pos/api/v1/distributions/rancher_distributions/?national_code=4050820765 HTTP/1.1" 200 135 +[2025-11-04 16:33:58,915] INFO django.server | IP: - | Path: - | "GET /product/pos/api/v1/distributions/rancher_distributions?national_code=4050820765 HTTP/1.1" 301 0 +[2025-11-04 16:33:59,161] INFO django.server | IP: - | Path: - | "GET /product/pos/api/v1/distributions/rancher_distributions/?national_code=4050820765 HTTP/1.1" 200 135 +[2025-11-04 16:37:38,288] INFO django.utils.autoreload | IP: - | Path: - | D:\Project\Rasaddam_Backend\apps\product\pos\api\v1\viewsets\quota_distribution_api.py changed, reloading. +[2025-11-04 16:37:40,860] INFO django.utils.autoreload | IP: - | Path: - | Watching for file changes with StatReloader +[2025-11-04 16:39:03,447] INFO django.server | IP: - | Path: - | "GET /product/pos/api/v1/distributions/rancher_distributions?national_code=4050820765 HTTP/1.1" 301 0 +[2025-11-04 16:39:03,697] INFO django.server | IP: - | Path: - | "GET /product/pos/api/v1/distributions/rancher_distributions/?national_code=4050820765 HTTP/1.1" 200 135 +[2025-11-04 16:39:11,646] INFO django.utils.autoreload | IP: - | Path: - | D:\Project\Rasaddam_Backend\apps\product\pos\api\v1\viewsets\quota_distribution_api.py changed, reloading. +[2025-11-04 16:39:14,989] INFO django.utils.autoreload | IP: - | Path: - | Watching for file changes with StatReloader +[2025-11-04 16:39:19,119] INFO django.server | IP: - | Path: - | "GET /product/pos/api/v1/distributions/rancher_distributions?national_code=4050820765 HTTP/1.1" 301 0 +[2025-11-04 16:39:19,402] INFO django.server | IP: - | Path: - | "GET /product/pos/api/v1/distributions/rancher_distributions/?national_code=4050820765 HTTP/1.1" 200 135 +[2025-11-04 16:39:35,211] INFO django.utils.autoreload | IP: - | Path: - | D:\Project\Rasaddam_Backend\apps\product\pos\api\v1\viewsets\quota_distribution_api.py changed, reloading. +[2025-11-04 16:39:37,974] INFO django.utils.autoreload | IP: - | Path: - | Watching for file changes with StatReloader +[2025-11-04 16:39:42,776] INFO django.server | IP: - | Path: - | "GET /product/pos/api/v1/distributions/rancher_distributions?national_code=4050820765 HTTP/1.1" 301 0 +[2025-11-04 16:39:44,415] INFO django.server | IP: - | Path: - | "GET /product/pos/api/v1/distributions/rancher_distributions/?national_code=4050820765 HTTP/1.1" 200 13860 +[2025-11-04 16:39:54,036] INFO django.utils.autoreload | IP: - | Path: - | D:\Project\Rasaddam_Backend\apps\product\pos\api\v1\viewsets\quota_distribution_api.py changed, reloading. +[2025-11-04 16:39:56,890] INFO django.utils.autoreload | IP: - | Path: - | Watching for file changes with StatReloader +[2025-11-04 16:40:01,717] INFO django.server | IP: - | Path: - | "GET /product/pos/api/v1/distributions/rancher_distributions?national_code=4050820765 HTTP/1.1" 301 0 +[2025-11-04 16:40:03,247] INFO django.server | IP: - | Path: - | "GET /product/pos/api/v1/distributions/rancher_distributions/?national_code=4050820765 HTTP/1.1" 200 13860 +[2025-11-04 16:44:24,477] INFO django.utils.autoreload | IP: - | Path: - | D:\Project\Rasaddam_Backend\apps\product\pos\api\v1\viewsets\quota_distribution_api.py changed, reloading. +[2025-11-04 16:44:26,557] INFO django.utils.autoreload | IP: - | Path: - | Watching for file changes with StatReloader +[2025-11-04 16:44:30,851] INFO django.server | IP: - | Path: - | "GET /product/pos/api/v1/distributions/rancher_distributions?national_code=4050820765 HTTP/1.1" 301 0 +[2025-11-04 16:44:31,111] INFO django.server | IP: - | Path: - | "GET /product/pos/api/v1/distributions/rancher_distributions/?national_code=4050820765 HTTP/1.1" 200 135 +[2025-11-04 16:51:33,508] INFO django.server | IP: - | Path: - | "GET /product/pos/api/v1/distributions/rancher_distributions?national_code=4050820765 HTTP/1.1" 301 0 +[2025-11-04 16:51:33,797] INFO django.server | IP: - | Path: - | "GET /product/pos/api/v1/distributions/rancher_distributions/?national_code=4050820765 HTTP/1.1" 200 135 +[2025-11-04 16:51:35,615] INFO django.server | IP: - | Path: - | "GET /product/pos/api/v1/distributions/rancher_distributions?national_code=4050820765 HTTP/1.1" 301 0 +[2025-11-04 16:51:35,837] INFO django.server | IP: - | Path: - | "GET /product/pos/api/v1/distributions/rancher_distributions/?national_code=4050820765 HTTP/1.1" 200 135 +[2025-11-04 16:57:05,241] INFO django.server | IP: - | Path: - | "GET /product/pos/api/v1/distributions/rancher_distributions?national_code=4050820765 HTTP/1.1" 301 0 +[2025-11-04 16:57:05,970] INFO django.server | IP: - | Path: - | "GET /product/pos/api/v1/distributions/rancher_distributions/?national_code=4050820765 HTTP/1.1" 200 135 +[2025-11-04 16:57:34,372] INFO django.server | IP: - | Path: - | "GET /product/pos/api/v1/distributions/rancher_distributions?national_code=4050820765 HTTP/1.1" 301 0 +[2025-11-04 16:57:56,151] INFO django.server | IP: - | Path: - | "GET /product/pos/api/v1/distributions/rancher_distributions?national_code=4050820765 HTTP/1.1" 301 0 +[2025-11-04 16:58:38,351] INFO django.server | IP: - | Path: - | "GET /product/pos/api/v1/distributions/rancher_distributions?national_code=4050820765 HTTP/1.1" 301 0 +[2025-11-04 16:59:12,453] INFO django.server | IP: - | Path: - | "GET /product/pos/api/v1/distributions/rancher_distributions?national_code=4050820765 HTTP/1.1" 301 0 +[2025-11-04 17:05:47,947] INFO django.utils.autoreload | IP: - | Path: - | Watching for file changes with StatReloader +[2025-11-04 17:05:52,847] INFO django.server | IP: - | Path: - | "GET /product/pos/api/v1/distributions/rancher_distributions?national_code=4050820765 HTTP/1.1" 301 0 +[2025-11-04 17:05:53,557] INFO django.server | IP: - | Path: - | "GET /product/pos/api/v1/distributions/rancher_distributions/?national_code=4050820765 HTTP/1.1" 200 135 +[2025-11-04 17:05:56,102] INFO django.server | IP: - | Path: - | "GET /product/pos/api/v1/distributions/rancher_distributions?national_code=4050820765 HTTP/1.1" 301 0 +[2025-11-04 17:05:56,332] INFO django.server | IP: - | Path: - | "GET /product/pos/api/v1/distributions/rancher_distributions/?national_code=4050820765 HTTP/1.1" 200 135 +[2025-11-04 17:06:17,529] INFO django.utils.autoreload | IP: - | Path: - | Watching for file changes with StatReloader +[2025-11-04 17:06:22,919] INFO django.server | IP: - | Path: - | "GET /product/pos/api/v1/distributions/rancher_distributions?national_code=4050820765 HTTP/1.1" 301 0 +[2025-11-04 17:06:23,834] INFO django.server | IP: - | Path: - | "GET /product/pos/api/v1/distributions/rancher_distributions/?national_code=4050820765 HTTP/1.1" 200 2942 +[2025-11-04 17:07:06,225] INFO django.utils.autoreload | IP: - | Path: - | D:\Project\Rasaddam_Backend\apps\pos_device\services\services.py changed, reloading. +[2025-11-04 17:07:10,761] INFO django.utils.autoreload | IP: - | Path: - | Watching for file changes with StatReloader +[2025-11-04 17:07:15,282] INFO django.server | IP: - | Path: - | "GET /product/pos/api/v1/distributions/rancher_distributions?national_code=4050820765 HTTP/1.1" 301 0 +[2025-11-04 17:07:15,776] INFO django.server | IP: - | Path: - | "GET /product/pos/api/v1/distributions/rancher_distributions/?national_code=4050820765 HTTP/1.1" 200 2942 +[2025-11-04 17:07:20,401] INFO django.server | IP: - | Path: - | "GET /product/pos/api/v1/distributions/rancher_distributions?national_code=4050820765 HTTP/1.1" 301 0 +[2025-11-04 17:07:20,939] INFO django.server | IP: - | Path: - | "GET /product/pos/api/v1/distributions/rancher_distributions/?national_code=4050820765 HTTP/1.1" 200 2942 +[2025-11-04 17:08:29,872] INFO django.server | IP: - | Path: - | "GET /product/pos/api/v1/distributions/rancher_distributions?national_code=4050820765 HTTP/1.1" 301 0 +[2025-11-04 17:08:30,367] INFO django.server | IP: - | Path: - | "GET /product/pos/api/v1/distributions/rancher_distributions/?national_code=4050820765 HTTP/1.1" 200 2942 +[2025-11-04 17:08:56,226] INFO django.utils.autoreload | IP: - | Path: - | D:\Project\Rasaddam_Backend\apps\pos_device\services\services.py changed, reloading. +[2025-11-04 17:08:58,633] INFO django.utils.autoreload | IP: - | Path: - | Watching for file changes with StatReloader +[2025-11-04 17:09:04,507] INFO django.server | IP: - | Path: - | "GET /product/pos/api/v1/distributions/rancher_distributions?national_code=4050820765 HTTP/1.1" 301 0 +[2025-11-04 17:09:05,037] INFO django.server | IP: - | Path: - | "GET /product/pos/api/v1/distributions/rancher_distributions/?national_code=4050820765 HTTP/1.1" 200 2942 +[2025-11-04 17:09:14,754] INFO django.utils.autoreload | IP: - | Path: - | D:\Project\Rasaddam_Backend\apps\pos_device\services\services.py changed, reloading. +[2025-11-04 17:09:19,523] INFO django.utils.autoreload | IP: - | Path: - | Watching for file changes with StatReloader +[2025-11-04 17:09:23,486] INFO django.server | IP: - | Path: - | "GET /product/pos/api/v1/distributions/rancher_distributions?national_code=4050820765 HTTP/1.1" 301 0 +[2025-11-04 17:09:24,021] INFO django.server | IP: - | Path: - | "GET /product/pos/api/v1/distributions/rancher_distributions/?national_code=4050820765 HTTP/1.1" 200 2942 +[2025-11-04 17:09:29,099] INFO django.server | IP: - | Path: - | "GET /product/pos/api/v1/distributions/rancher_distributions?national_code=4050820765 HTTP/1.1" 301 0 +[2025-11-04 17:09:29,638] INFO django.server | IP: - | Path: - | "GET /product/pos/api/v1/distributions/rancher_distributions/?national_code=4050820765 HTTP/1.1" 200 2942 +[2025-11-04 17:09:42,069] INFO django.utils.autoreload | IP: - | Path: - | D:\Project\Rasaddam_Backend\apps\pos_device\services\services.py changed, reloading. +[2025-11-04 17:09:47,019] INFO django.utils.autoreload | IP: - | Path: - | Watching for file changes with StatReloader +[2025-11-04 17:09:51,187] INFO django.server | IP: - | Path: - | "GET /product/pos/api/v1/distributions/rancher_distributions?national_code=4050820765 HTTP/1.1" 301 0 +[2025-11-04 17:09:51,678] ERROR django.request | IP: 127.0.0.1 | Path: /product/pos/api/v1/distributions/rancher_distributions/ | Internal Server Error: /product/pos/api/v1/distributions/rancher_distributions/ +Traceback (most recent call last): + File "D:\Software\env\Lib\site-packages\django\core\handlers\exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "D:\Software\env\Lib\site-packages\django\core\handlers\base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "D:\Software\env\Lib\site-packages\django\views\decorators\csrf.py", line 65, in _view_wrapper + return view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "D:\Software\env\Lib\site-packages\rest_framework\viewsets.py", line 125, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "D:\Software\env\Lib\site-packages\rest_framework\views.py", line 515, in dispatch + response = self.handle_exception(exc) + ^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "D:\Software\env\Lib\site-packages\rest_framework\views.py", line 472, in handle_exception + response = exception_handler(exc, context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "D:\Software\env\Lib\site-packages\rest_framework\views.py", line 512, in dispatch + response = handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "D:\Project\Rasaddam_Backend\apps\product\pos\api\v1\viewsets\quota_distribution_api.py", line 119, in rancher_distributions + return self.get_paginated_response(serializer.data) + ^^^^^^^^^^^^^^^ + File "D:\Software\env\Lib\site-packages\rest_framework\serializers.py", line 797, in data + ret = super().data + ^^^^^^^^^^^^ + File "D:\Software\env\Lib\site-packages\rest_framework\serializers.py", line 251, in data + self._data = self.to_representation(self.instance) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "D:\Software\env\Lib\site-packages\rest_framework\serializers.py", line 716, in to_representation + self.child.to_representation(item) for item in iterable + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "D:\Project\Rasaddam_Backend\apps\product\pos\api\v1\serializers\quota_distribution_serializers.py", line 124, in to_representation + 'base_prices': quota_pricing_items_by_type(instance.quota, sharing=sharing_list) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "D:\Project\Rasaddam_Backend\apps\product\services\services.py", line 107, in quota_pricing_items_by_type + calculate_sharing_total_price = sum(item['amount'] for item in sharing if item['amount'] is not None) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +TypeError: 'NoneType' object is not iterable +[2025-11-04 17:09:51,684] ERROR django.server | IP: - | Path: - | "GET /product/pos/api/v1/distributions/rancher_distributions/?national_code=4050820765 HTTP/1.1" 500 149470 +[2025-11-04 17:11:10,725] INFO django.utils.autoreload | IP: - | Path: - | D:\Project\Rasaddam_Backend\apps\pos_device\services\services.py changed, reloading. +[2025-11-04 17:11:12,729] INFO django.utils.autoreload | IP: - | Path: - | Watching for file changes with StatReloader +[2025-11-04 17:12:55,374] INFO django.utils.autoreload | IP: - | Path: - | D:\Project\Rasaddam_Backend\apps\pos_device\services\services.py changed, reloading. +[2025-11-04 17:12:57,556] INFO django.utils.autoreload | IP: - | Path: - | Watching for file changes with StatReloader +[2025-11-04 17:13:08,433] INFO django.server | IP: - | Path: - | "GET /product/pos/api/v1/distributions/rancher_distributions?national_code=4050820765 HTTP/1.1" 301 0 +[2025-11-04 17:13:08,947] ERROR django.request | IP: 127.0.0.1 | Path: /product/pos/api/v1/distributions/rancher_distributions/ | Internal Server Error: /product/pos/api/v1/distributions/rancher_distributions/ +Traceback (most recent call last): + File "D:\Software\env\Lib\site-packages\django\core\handlers\exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "D:\Software\env\Lib\site-packages\django\core\handlers\base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "D:\Software\env\Lib\site-packages\django\views\decorators\csrf.py", line 65, in _view_wrapper + return view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "D:\Software\env\Lib\site-packages\rest_framework\viewsets.py", line 125, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "D:\Software\env\Lib\site-packages\rest_framework\views.py", line 515, in dispatch + response = self.handle_exception(exc) + ^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "D:\Software\env\Lib\site-packages\rest_framework\views.py", line 472, in handle_exception + response = exception_handler(exc, context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "D:\Software\env\Lib\site-packages\rest_framework\views.py", line 512, in dispatch + response = handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "D:\Project\Rasaddam_Backend\apps\product\pos\api\v1\viewsets\quota_distribution_api.py", line 119, in rancher_distributions + return self.get_paginated_response(serializer.data) + ^^^^^^^^^^^^^^^ + File "D:\Software\env\Lib\site-packages\rest_framework\serializers.py", line 797, in data + ret = super().data + ^^^^^^^^^^^^ + File "D:\Software\env\Lib\site-packages\rest_framework\serializers.py", line 251, in data + self._data = self.to_representation(self.instance) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "D:\Software\env\Lib\site-packages\rest_framework\serializers.py", line 716, in to_representation + self.child.to_representation(item) for item in iterable + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "D:\Project\Rasaddam_Backend\apps\product\pos\api\v1\serializers\quota_distribution_serializers.py", line 124, in to_representation + 'base_prices': quota_pricing_items_by_type(instance.quota, sharing=sharing_list) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "D:\Project\Rasaddam_Backend\apps\product\services\services.py", line 107, in quota_pricing_items_by_type + calculate_sharing_total_price = sum(item['amount'] for item in sharing if item['amount'] is not None) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +TypeError: 'NoneType' object is not iterable +[2025-11-04 17:13:08,953] ERROR django.server | IP: - | Path: - | "GET /product/pos/api/v1/distributions/rancher_distributions/?national_code=4050820765 HTTP/1.1" 500 149470 +[2025-11-04 17:13:29,546] INFO django.utils.autoreload | IP: - | Path: - | D:\Project\Rasaddam_Backend\apps\pos_device\services\services.py changed, reloading. +[2025-11-04 17:13:31,752] INFO django.utils.autoreload | IP: - | Path: - | Watching for file changes with StatReloader +[2025-11-04 17:13:38,306] INFO django.server | IP: - | Path: - | "GET /product/pos/api/v1/distributions/rancher_distributions?national_code=4050820765 HTTP/1.1" 301 0 +[2025-11-04 17:13:38,753] ERROR django.request | IP: 127.0.0.1 | Path: /product/pos/api/v1/distributions/rancher_distributions/ | Internal Server Error: /product/pos/api/v1/distributions/rancher_distributions/ +Traceback (most recent call last): + File "D:\Software\env\Lib\site-packages\django\core\handlers\exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "D:\Software\env\Lib\site-packages\django\core\handlers\base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "D:\Software\env\Lib\site-packages\django\views\decorators\csrf.py", line 65, in _view_wrapper + return view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "D:\Software\env\Lib\site-packages\rest_framework\viewsets.py", line 125, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "D:\Software\env\Lib\site-packages\rest_framework\views.py", line 515, in dispatch + response = self.handle_exception(exc) + ^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "D:\Software\env\Lib\site-packages\rest_framework\views.py", line 472, in handle_exception + response = exception_handler(exc, context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "D:\Software\env\Lib\site-packages\rest_framework\views.py", line 512, in dispatch + response = handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "D:\Project\Rasaddam_Backend\apps\product\pos\api\v1\viewsets\quota_distribution_api.py", line 119, in rancher_distributions + return self.get_paginated_response(serializer.data) + ^^^^^^^^^^^^^^^ + File "D:\Software\env\Lib\site-packages\rest_framework\serializers.py", line 797, in data + ret = super().data + ^^^^^^^^^^^^ + File "D:\Software\env\Lib\site-packages\rest_framework\serializers.py", line 251, in data + self._data = self.to_representation(self.instance) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "D:\Software\env\Lib\site-packages\rest_framework\serializers.py", line 716, in to_representation + self.child.to_representation(item) for item in iterable + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "D:\Project\Rasaddam_Backend\apps\product\pos\api\v1\serializers\quota_distribution_serializers.py", line 124, in to_representation + 'base_prices': quota_pricing_items_by_type(instance.quota, sharing=sharing_list) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "D:\Project\Rasaddam_Backend\apps\product\services\services.py", line 107, in quota_pricing_items_by_type + calculate_sharing_total_price = sum(item['amount'] for item in sharing if item['amount'] is not None) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +TypeError: 'NoneType' object is not iterable +[2025-11-04 17:13:38,757] ERROR django.server | IP: - | Path: - | "GET /product/pos/api/v1/distributions/rancher_distributions/?national_code=4050820765 HTTP/1.1" 500 149470 +[2025-11-04 17:20:42,570] INFO django.server | IP: - | Path: - | "POST /pos_device/web/v1/pos/holders_share/ HTTP/1.1" 201 5912 +[2025-11-04 17:20:47,251] INFO django.server | IP: - | Path: - | "GET /product/pos/api/v1/distributions/rancher_distributions?national_code=4050820765 HTTP/1.1" 301 0 +[2025-11-04 17:20:47,751] ERROR django.request | IP: 127.0.0.1 | Path: /product/pos/api/v1/distributions/rancher_distributions/ | Internal Server Error: /product/pos/api/v1/distributions/rancher_distributions/ +Traceback (most recent call last): + File "D:\Software\env\Lib\site-packages\django\core\handlers\exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "D:\Software\env\Lib\site-packages\django\core\handlers\base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "D:\Software\env\Lib\site-packages\django\views\decorators\csrf.py", line 65, in _view_wrapper + return view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "D:\Software\env\Lib\site-packages\rest_framework\viewsets.py", line 125, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "D:\Software\env\Lib\site-packages\rest_framework\views.py", line 515, in dispatch + response = self.handle_exception(exc) + ^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "D:\Software\env\Lib\site-packages\rest_framework\views.py", line 472, in handle_exception + response = exception_handler(exc, context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "D:\Software\env\Lib\site-packages\rest_framework\views.py", line 512, in dispatch + response = handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "D:\Project\Rasaddam_Backend\apps\product\pos\api\v1\viewsets\quota_distribution_api.py", line 119, in rancher_distributions + return self.get_paginated_response(serializer.data) + ^^^^^^^^^^^^^^^ + File "D:\Software\env\Lib\site-packages\rest_framework\serializers.py", line 797, in data + ret = super().data + ^^^^^^^^^^^^ + File "D:\Software\env\Lib\site-packages\rest_framework\serializers.py", line 251, in data + self._data = self.to_representation(self.instance) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "D:\Software\env\Lib\site-packages\rest_framework\serializers.py", line 716, in to_representation + self.child.to_representation(item) for item in iterable + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "D:\Project\Rasaddam_Backend\apps\product\pos\api\v1\serializers\quota_distribution_serializers.py", line 124, in to_representation + 'base_prices': quota_pricing_items_by_type(instance.quota, sharing=sharing_list) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "D:\Project\Rasaddam_Backend\apps\product\services\services.py", line 107, in quota_pricing_items_by_type + calculate_sharing_total_price = sum(item['amount'] for item in sharing if item['amount'] is not None) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +TypeError: 'NoneType' object is not iterable +[2025-11-04 17:20:47,755] ERROR django.server | IP: - | Path: - | "GET /product/pos/api/v1/distributions/rancher_distributions/?national_code=4050820765 HTTP/1.1" 500 149470 +[2025-11-04 17:31:01,870] INFO django.utils.autoreload | IP: - | Path: - | D:\Project\Rasaddam_Backend\apps\pos_device\services\services.py changed, reloading. +[2025-11-04 17:31:06,494] INFO django.utils.autoreload | IP: - | Path: - | Watching for file changes with StatReloader +[2025-11-04 17:31:10,972] INFO django.server | IP: - | Path: - | "GET /product/pos/api/v1/distributions/rancher_distributions?national_code=4050820765 HTTP/1.1" 301 0 +[2025-11-04 17:31:11,412] ERROR django.request | IP: 127.0.0.1 | Path: /product/pos/api/v1/distributions/rancher_distributions/ | Internal Server Error: /product/pos/api/v1/distributions/rancher_distributions/ +Traceback (most recent call last): + File "D:\Software\env\Lib\site-packages\django\core\handlers\exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "D:\Software\env\Lib\site-packages\django\core\handlers\base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "D:\Software\env\Lib\site-packages\django\views\decorators\csrf.py", line 65, in _view_wrapper + return view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "D:\Software\env\Lib\site-packages\rest_framework\viewsets.py", line 125, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "D:\Software\env\Lib\site-packages\rest_framework\views.py", line 515, in dispatch + response = self.handle_exception(exc) + ^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "D:\Software\env\Lib\site-packages\rest_framework\views.py", line 472, in handle_exception + response = exception_handler(exc, context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "D:\Software\env\Lib\site-packages\rest_framework\views.py", line 512, in dispatch + response = handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "D:\Project\Rasaddam_Backend\apps\product\pos\api\v1\viewsets\quota_distribution_api.py", line 119, in rancher_distributions + return self.get_paginated_response(serializer.data) + ^^^^^^^^^^^^^^^ + File "D:\Software\env\Lib\site-packages\rest_framework\serializers.py", line 797, in data + ret = super().data + ^^^^^^^^^^^^ + File "D:\Software\env\Lib\site-packages\rest_framework\serializers.py", line 251, in data + self._data = self.to_representation(self.instance) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "D:\Software\env\Lib\site-packages\rest_framework\serializers.py", line 716, in to_representation + self.child.to_representation(item) for item in iterable + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "D:\Project\Rasaddam_Backend\apps\product\pos\api\v1\serializers\quota_distribution_serializers.py", line 124, in to_representation + 'base_prices': quota_pricing_items_by_type(instance.quota, sharing=sharing_list) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "D:\Project\Rasaddam_Backend\apps\product\services\services.py", line 107, in quota_pricing_items_by_type + calculate_sharing_total_price = sum(item['amount'] for item in sharing if item['amount'] is not None) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +TypeError: 'NoneType' object is not iterable +[2025-11-04 17:31:11,420] ERROR django.server | IP: - | Path: - | "GET /product/pos/api/v1/distributions/rancher_distributions/?national_code=4050820765 HTTP/1.1" 500 149470 +[2025-11-04 17:31:43,269] INFO django.utils.autoreload | IP: - | Path: - | D:\Project\Rasaddam_Backend\apps\pos_device\services\services.py changed, reloading. +[2025-11-04 17:31:45,549] INFO django.utils.autoreload | IP: - | Path: - | Watching for file changes with StatReloader +[2025-11-04 17:31:49,804] INFO django.server | IP: - | Path: - | "GET /product/pos/api/v1/distributions/rancher_distributions?national_code=4050820765 HTTP/1.1" 301 0 +[2025-11-04 17:31:50,292] ERROR django.request | IP: 127.0.0.1 | Path: /product/pos/api/v1/distributions/rancher_distributions/ | Internal Server Error: /product/pos/api/v1/distributions/rancher_distributions/ +Traceback (most recent call last): + File "D:\Software\env\Lib\site-packages\django\core\handlers\exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "D:\Software\env\Lib\site-packages\django\core\handlers\base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "D:\Software\env\Lib\site-packages\django\views\decorators\csrf.py", line 65, in _view_wrapper + return view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "D:\Software\env\Lib\site-packages\rest_framework\viewsets.py", line 125, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "D:\Software\env\Lib\site-packages\rest_framework\views.py", line 515, in dispatch + response = self.handle_exception(exc) + ^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "D:\Software\env\Lib\site-packages\rest_framework\views.py", line 472, in handle_exception + response = exception_handler(exc, context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "D:\Software\env\Lib\site-packages\rest_framework\views.py", line 512, in dispatch + response = handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "D:\Project\Rasaddam_Backend\apps\product\pos\api\v1\viewsets\quota_distribution_api.py", line 119, in rancher_distributions + return self.get_paginated_response(serializer.data) + ^^^^^^^^^^^^^^^ + File "D:\Software\env\Lib\site-packages\rest_framework\serializers.py", line 797, in data + ret = super().data + ^^^^^^^^^^^^ + File "D:\Software\env\Lib\site-packages\rest_framework\serializers.py", line 251, in data + self._data = self.to_representation(self.instance) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "D:\Software\env\Lib\site-packages\rest_framework\serializers.py", line 716, in to_representation + self.child.to_representation(item) for item in iterable + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "D:\Project\Rasaddam_Backend\apps\product\pos\api\v1\serializers\quota_distribution_serializers.py", line 124, in to_representation + 'base_prices': quota_pricing_items_by_type(instance.quota, sharing=sharing_list) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "D:\Project\Rasaddam_Backend\apps\product\services\services.py", line 107, in quota_pricing_items_by_type + calculate_sharing_total_price = sum(item['amount'] for item in sharing if item['amount'] is not None) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +TypeError: 'NoneType' object is not iterable +[2025-11-04 17:31:50,303] ERROR django.server | IP: - | Path: - | "GET /product/pos/api/v1/distributions/rancher_distributions/?national_code=4050820765 HTTP/1.1" 500 149470 +[2025-11-04 17:32:14,967] INFO django.utils.autoreload | IP: - | Path: - | D:\Project\Rasaddam_Backend\apps\pos_device\services\services.py changed, reloading. +[2025-11-04 17:32:17,326] INFO django.utils.autoreload | IP: - | Path: - | Watching for file changes with StatReloader +[2025-11-04 17:32:24,636] INFO django.server | IP: - | Path: - | "GET /product/pos/api/v1/distributions/rancher_distributions?national_code=4050820765 HTTP/1.1" 301 0 +[2025-11-04 17:32:25,126] ERROR django.request | IP: 127.0.0.1 | Path: /product/pos/api/v1/distributions/rancher_distributions/ | Internal Server Error: /product/pos/api/v1/distributions/rancher_distributions/ +Traceback (most recent call last): + File "D:\Software\env\Lib\site-packages\django\core\handlers\exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "D:\Software\env\Lib\site-packages\django\core\handlers\base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "D:\Software\env\Lib\site-packages\django\views\decorators\csrf.py", line 65, in _view_wrapper + return view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "D:\Software\env\Lib\site-packages\rest_framework\viewsets.py", line 125, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "D:\Software\env\Lib\site-packages\rest_framework\views.py", line 515, in dispatch + response = self.handle_exception(exc) + ^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "D:\Software\env\Lib\site-packages\rest_framework\views.py", line 472, in handle_exception + response = exception_handler(exc, context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "D:\Software\env\Lib\site-packages\rest_framework\views.py", line 512, in dispatch + response = handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "D:\Project\Rasaddam_Backend\apps\product\pos\api\v1\viewsets\quota_distribution_api.py", line 119, in rancher_distributions + return self.get_paginated_response(serializer.data) + ^^^^^^^^^^^^^^^ + File "D:\Software\env\Lib\site-packages\rest_framework\serializers.py", line 797, in data + ret = super().data + ^^^^^^^^^^^^ + File "D:\Software\env\Lib\site-packages\rest_framework\serializers.py", line 251, in data + self._data = self.to_representation(self.instance) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "D:\Software\env\Lib\site-packages\rest_framework\serializers.py", line 716, in to_representation + self.child.to_representation(item) for item in iterable + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "D:\Project\Rasaddam_Backend\apps\product\pos\api\v1\serializers\quota_distribution_serializers.py", line 124, in to_representation + 'base_prices': quota_pricing_items_by_type(instance.quota, sharing=sharing_list) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "D:\Project\Rasaddam_Backend\apps\product\services\services.py", line 107, in quota_pricing_items_by_type + calculate_sharing_total_price = sum(item['amount'] for item in sharing if item['amount'] is not None) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +TypeError: 'NoneType' object is not iterable +[2025-11-04 17:32:25,137] ERROR django.server | IP: - | Path: - | "GET /product/pos/api/v1/distributions/rancher_distributions/?national_code=4050820765 HTTP/1.1" 500 149470 +[2025-11-04 17:32:51,144] INFO django.utils.autoreload | IP: - | Path: - | D:\Project\Rasaddam_Backend\apps\pos_device\services\services.py changed, reloading. +[2025-11-04 17:32:53,145] INFO django.utils.autoreload | IP: - | Path: - | Watching for file changes with StatReloader +[2025-11-04 17:33:07,380] INFO django.server | IP: - | Path: - | "GET /product/pos/api/v1/distributions/rancher_distributions?national_code=4050820765 HTTP/1.1" 301 0 +[2025-11-04 17:33:07,830] ERROR django.request | IP: 127.0.0.1 | Path: /product/pos/api/v1/distributions/rancher_distributions/ | Internal Server Error: /product/pos/api/v1/distributions/rancher_distributions/ +Traceback (most recent call last): + File "D:\Software\env\Lib\site-packages\django\core\handlers\exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "D:\Software\env\Lib\site-packages\django\core\handlers\base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "D:\Software\env\Lib\site-packages\django\views\decorators\csrf.py", line 65, in _view_wrapper + return view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "D:\Software\env\Lib\site-packages\rest_framework\viewsets.py", line 125, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "D:\Software\env\Lib\site-packages\rest_framework\views.py", line 515, in dispatch + response = self.handle_exception(exc) + ^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "D:\Software\env\Lib\site-packages\rest_framework\views.py", line 472, in handle_exception + response = exception_handler(exc, context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "D:\Software\env\Lib\site-packages\rest_framework\views.py", line 512, in dispatch + response = handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "D:\Project\Rasaddam_Backend\apps\product\pos\api\v1\viewsets\quota_distribution_api.py", line 119, in rancher_distributions + return self.get_paginated_response(serializer.data) + ^^^^^^^^^^^^^^^ + File "D:\Software\env\Lib\site-packages\rest_framework\serializers.py", line 797, in data + ret = super().data + ^^^^^^^^^^^^ + File "D:\Software\env\Lib\site-packages\rest_framework\serializers.py", line 251, in data + self._data = self.to_representation(self.instance) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "D:\Software\env\Lib\site-packages\rest_framework\serializers.py", line 716, in to_representation + self.child.to_representation(item) for item in iterable + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "D:\Project\Rasaddam_Backend\apps\product\pos\api\v1\serializers\quota_distribution_serializers.py", line 124, in to_representation + 'base_prices': quota_pricing_items_by_type(instance.quota, sharing=sharing_list) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "D:\Project\Rasaddam_Backend\apps\product\services\services.py", line 107, in quota_pricing_items_by_type + calculate_sharing_total_price = sum(item['amount'] for item in sharing if item['amount'] is not None) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +TypeError: 'NoneType' object is not iterable +[2025-11-04 17:33:07,837] ERROR django.server | IP: - | Path: - | "GET /product/pos/api/v1/distributions/rancher_distributions/?national_code=4050820765 HTTP/1.1" 500 149470 +[2025-11-04 17:33:50,744] INFO django.utils.autoreload | IP: - | Path: - | D:\Project\Rasaddam_Backend\apps\pos_device\services\services.py changed, reloading. +[2025-11-04 17:33:52,599] INFO django.utils.autoreload | IP: - | Path: - | Watching for file changes with StatReloader +[2025-11-04 17:33:59,977] INFO django.server | IP: - | Path: - | "GET /product/pos/api/v1/distributions/rancher_distributions?national_code=4050820765 HTTP/1.1" 301 0 +[2025-11-04 17:34:00,465] ERROR django.request | IP: 127.0.0.1 | Path: /product/pos/api/v1/distributions/rancher_distributions/ | Internal Server Error: /product/pos/api/v1/distributions/rancher_distributions/ +Traceback (most recent call last): + File "D:\Software\env\Lib\site-packages\django\core\handlers\exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "D:\Software\env\Lib\site-packages\django\core\handlers\base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "D:\Software\env\Lib\site-packages\django\views\decorators\csrf.py", line 65, in _view_wrapper + return view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "D:\Software\env\Lib\site-packages\rest_framework\viewsets.py", line 125, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "D:\Software\env\Lib\site-packages\rest_framework\views.py", line 515, in dispatch + response = self.handle_exception(exc) + ^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "D:\Software\env\Lib\site-packages\rest_framework\views.py", line 472, in handle_exception + response = exception_handler(exc, context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "D:\Software\env\Lib\site-packages\rest_framework\views.py", line 512, in dispatch + response = handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "D:\Project\Rasaddam_Backend\apps\product\pos\api\v1\viewsets\quota_distribution_api.py", line 119, in rancher_distributions + return self.get_paginated_response(serializer.data) + ^^^^^^^^^^^^^^^ + File "D:\Software\env\Lib\site-packages\rest_framework\serializers.py", line 797, in data + ret = super().data + ^^^^^^^^^^^^ + File "D:\Software\env\Lib\site-packages\rest_framework\serializers.py", line 251, in data + self._data = self.to_representation(self.instance) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "D:\Software\env\Lib\site-packages\rest_framework\serializers.py", line 716, in to_representation + self.child.to_representation(item) for item in iterable + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "D:\Project\Rasaddam_Backend\apps\product\pos\api\v1\serializers\quota_distribution_serializers.py", line 124, in to_representation + 'base_prices': quota_pricing_items_by_type(instance.quota, sharing=sharing_list) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "D:\Project\Rasaddam_Backend\apps\product\services\services.py", line 107, in quota_pricing_items_by_type + calculate_sharing_total_price = sum(item['amount'] for item in sharing if item['amount'] is not None) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +TypeError: 'NoneType' object is not iterable +[2025-11-04 17:34:00,469] ERROR django.server | IP: - | Path: - | "GET /product/pos/api/v1/distributions/rancher_distributions/?national_code=4050820765 HTTP/1.1" 500 149470 +[2025-11-04 17:34:37,319] INFO django.utils.autoreload | IP: - | Path: - | D:\Project\Rasaddam_Backend\apps\pos_device\services\services.py changed, reloading. +[2025-11-04 17:34:39,279] INFO django.utils.autoreload | IP: - | Path: - | Watching for file changes with StatReloader +[2025-11-04 17:34:45,287] INFO django.server | IP: - | Path: - | "GET /product/pos/api/v1/distributions/rancher_distributions?national_code=4050820765 HTTP/1.1" 301 0 +[2025-11-04 17:34:45,775] ERROR django.request | IP: 127.0.0.1 | Path: /product/pos/api/v1/distributions/rancher_distributions/ | Internal Server Error: /product/pos/api/v1/distributions/rancher_distributions/ +Traceback (most recent call last): + File "D:\Software\env\Lib\site-packages\django\core\handlers\exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "D:\Software\env\Lib\site-packages\django\core\handlers\base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "D:\Software\env\Lib\site-packages\django\views\decorators\csrf.py", line 65, in _view_wrapper + return view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "D:\Software\env\Lib\site-packages\rest_framework\viewsets.py", line 125, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "D:\Software\env\Lib\site-packages\rest_framework\views.py", line 515, in dispatch + response = self.handle_exception(exc) + ^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "D:\Software\env\Lib\site-packages\rest_framework\views.py", line 472, in handle_exception + response = exception_handler(exc, context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "D:\Software\env\Lib\site-packages\rest_framework\views.py", line 512, in dispatch + response = handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "D:\Project\Rasaddam_Backend\apps\product\pos\api\v1\viewsets\quota_distribution_api.py", line 119, in rancher_distributions + return self.get_paginated_response(serializer.data) + ^^^^^^^^^^^^^^^ + File "D:\Software\env\Lib\site-packages\rest_framework\serializers.py", line 797, in data + ret = super().data + ^^^^^^^^^^^^ + File "D:\Software\env\Lib\site-packages\rest_framework\serializers.py", line 251, in data + self._data = self.to_representation(self.instance) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "D:\Software\env\Lib\site-packages\rest_framework\serializers.py", line 716, in to_representation + self.child.to_representation(item) for item in iterable + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "D:\Project\Rasaddam_Backend\apps\product\pos\api\v1\serializers\quota_distribution_serializers.py", line 124, in to_representation + 'base_prices': quota_pricing_items_by_type(instance.quota, sharing=sharing_list) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "D:\Project\Rasaddam_Backend\apps\product\services\services.py", line 107, in quota_pricing_items_by_type + calculate_sharing_total_price = sum(item['amount'] for item in sharing if item['amount'] is not None) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +TypeError: 'NoneType' object is not iterable +[2025-11-04 17:34:45,781] ERROR django.server | IP: - | Path: - | "GET /product/pos/api/v1/distributions/rancher_distributions/?national_code=4050820765 HTTP/1.1" 500 149470 +[2025-11-04 17:36:11,385] INFO django.utils.autoreload | IP: - | Path: - | D:\Project\Rasaddam_Backend\apps\pos_device\services\services.py changed, reloading. +[2025-11-04 17:36:13,410] INFO django.utils.autoreload | IP: - | Path: - | Watching for file changes with StatReloader +[2025-11-04 17:36:20,971] INFO django.server | IP: - | Path: - | "GET /product/pos/api/v1/distributions/rancher_distributions?national_code=4050820765 HTTP/1.1" 301 0 +[2025-11-04 17:36:21,444] ERROR django.request | IP: 127.0.0.1 | Path: /product/pos/api/v1/distributions/rancher_distributions/ | Internal Server Error: /product/pos/api/v1/distributions/rancher_distributions/ +Traceback (most recent call last): + File "D:\Software\env\Lib\site-packages\django\core\handlers\exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "D:\Software\env\Lib\site-packages\django\core\handlers\base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "D:\Software\env\Lib\site-packages\django\views\decorators\csrf.py", line 65, in _view_wrapper + return view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "D:\Software\env\Lib\site-packages\rest_framework\viewsets.py", line 125, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "D:\Software\env\Lib\site-packages\rest_framework\views.py", line 515, in dispatch + response = self.handle_exception(exc) + ^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "D:\Software\env\Lib\site-packages\rest_framework\views.py", line 472, in handle_exception + response = exception_handler(exc, context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "D:\Software\env\Lib\site-packages\rest_framework\views.py", line 512, in dispatch + response = handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "D:\Project\Rasaddam_Backend\apps\product\pos\api\v1\viewsets\quota_distribution_api.py", line 119, in rancher_distributions + return self.get_paginated_response(serializer.data) + ^^^^^^^^^^^^^^^ + File "D:\Software\env\Lib\site-packages\rest_framework\serializers.py", line 797, in data + ret = super().data + ^^^^^^^^^^^^ + File "D:\Software\env\Lib\site-packages\rest_framework\serializers.py", line 251, in data + self._data = self.to_representation(self.instance) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "D:\Software\env\Lib\site-packages\rest_framework\serializers.py", line 716, in to_representation + self.child.to_representation(item) for item in iterable + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "D:\Project\Rasaddam_Backend\apps\product\pos\api\v1\serializers\quota_distribution_serializers.py", line 124, in to_representation + 'base_prices': quota_pricing_items_by_type(instance.quota, sharing=sharing_list) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "D:\Project\Rasaddam_Backend\apps\product\services\services.py", line 107, in quota_pricing_items_by_type + calculate_sharing_total_price = sum(item['amount'] for item in sharing if item['amount'] is not None) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +TypeError: 'NoneType' object is not iterable +[2025-11-04 17:36:21,449] ERROR django.server | IP: - | Path: - | "GET /product/pos/api/v1/distributions/rancher_distributions/?national_code=4050820765 HTTP/1.1" 500 149470 +[2025-11-04 17:39:38,229] INFO django.utils.autoreload | IP: - | Path: - | D:\Project\Rasaddam_Backend\apps\pos_device\services\services.py changed, reloading. +[2025-11-04 17:39:40,039] INFO django.utils.autoreload | IP: - | Path: - | Watching for file changes with StatReloader +[2025-11-04 17:39:47,346] INFO django.server | IP: - | Path: - | "GET /product/pos/api/v1/distributions/rancher_distributions?national_code=4050820765 HTTP/1.1" 301 0 +[2025-11-04 17:39:47,934] INFO django.server | IP: - | Path: - | "GET /product/pos/api/v1/distributions/rancher_distributions/?national_code=4050820765 HTTP/1.1" 200 3431 +[2025-11-04 17:41:12,558] INFO django.utils.autoreload | IP: - | Path: - | D:\Project\Rasaddam_Backend\apps\pos_device\services\services.py changed, reloading. +[2025-11-04 17:41:16,873] INFO django.utils.autoreload | IP: - | Path: - | Watching for file changes with StatReloader +[2025-11-04 17:41:21,231] INFO django.server | IP: - | Path: - | "GET /product/pos/api/v1/distributions/rancher_distributions?national_code=4050820765 HTTP/1.1" 301 0 +[2025-11-04 17:41:21,894] INFO django.server | IP: - | Path: - | "GET /product/pos/api/v1/distributions/rancher_distributions/?national_code=4050820765 HTTP/1.1" 200 3431 +[2025-11-05 08:55:48,912] INFO django.utils.autoreload | IP: - | Path: - | Watching for file changes with StatReloader +[2025-11-05 08:57:41,355] INFO django.server | IP: - | Path: - | "GET /product/pos/api/v1/distributions/rancher_distributions?national_code=4050820765 HTTP/1.1" 301 0 +[2025-11-05 08:57:41,954] INFO django.server | IP: - | Path: - | "GET /product/pos/api/v1/distributions/rancher_distributions/?national_code=4050820765 HTTP/1.1" 200 3431 +[2025-11-05 09:08:43,547] INFO django.utils.autoreload | IP: - | Path: - | Watching for file changes with StatReloader +[2025-11-05 09:09:03,683] INFO django.server | IP: - | Path: - | "GET /product/pos/api/v1/distributions/rancher_distributions?national_code=4050820765 HTTP/1.1" 301 0 +[2025-11-05 09:09:03,906] INFO django.server | IP: - | Path: - | "GET /product/pos/api/v1/distributions/rancher_distributions/?national_code=4050820765 HTTP/1.1" 200 135 +[2025-11-05 09:10:36,751] INFO django.server | IP: - | Path: - | "GET /product/pos/api/v1/distributions/rancher_distributions?national_code=4050820765 HTTP/1.1" 301 0 +[2025-11-05 09:10:37,388] ERROR django.request | IP: 127.0.0.1 | Path: /product/pos/api/v1/distributions/rancher_distributions/ | Internal Server Error: /product/pos/api/v1/distributions/rancher_distributions/ +Traceback (most recent call last): + File "D:\Software\env\Lib\site-packages\django\core\handlers\exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "D:\Software\env\Lib\site-packages\django\core\handlers\base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "D:\Software\env\Lib\site-packages\django\views\decorators\csrf.py", line 65, in _view_wrapper + return view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "D:\Software\env\Lib\site-packages\rest_framework\viewsets.py", line 125, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "D:\Software\env\Lib\site-packages\rest_framework\views.py", line 515, in dispatch + response = self.handle_exception(exc) + ^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "D:\Software\env\Lib\site-packages\rest_framework\views.py", line 472, in handle_exception + response = exception_handler(exc, context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "D:\Software\env\Lib\site-packages\rest_framework\views.py", line 512, in dispatch + response = handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "D:\Project\Rasaddam_Backend\apps\product\pos\api\v1\viewsets\quota_distribution_api.py", line 119, in rancher_distributions + return self.get_paginated_response(serializer.data) + ^^^^^^^^^^^^^^^ + File "D:\Software\env\Lib\site-packages\rest_framework\serializers.py", line 797, in data + ret = super().data + ^^^^^^^^^^^^ + File "D:\Software\env\Lib\site-packages\rest_framework\serializers.py", line 251, in data + self._data = self.to_representation(self.instance) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "D:\Software\env\Lib\site-packages\rest_framework\serializers.py", line 716, in to_representation + self.child.to_representation(item) for item in iterable + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "D:\Project\Rasaddam_Backend\apps\product\pos\api\v1\serializers\quota_distribution_serializers.py", line 124, in to_representation + 'base_prices': quota_pricing_items_by_type(instance.quota, sharing=sharing_list) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "D:\Project\Rasaddam_Backend\apps\product\services\services.py", line 107, in quota_pricing_items_by_type + calculate_sharing_total_price = sum(item['amount'] for item in sharing if item['amount'] is not None) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +TypeError: 'NoneType' object is not iterable +[2025-11-05 09:10:37,392] ERROR django.server | IP: - | Path: - | "GET /product/pos/api/v1/distributions/rancher_distributions/?national_code=4050820765 HTTP/1.1" 500 149471 +[2025-11-05 09:16:51,183] INFO django.utils.autoreload | IP: - | Path: - | D:\Project\Rasaddam_Backend\apps\pos_device\services\services.py changed, reloading. +[2025-11-05 09:16:52,838] INFO django.utils.autoreload | IP: - | Path: - | Watching for file changes with StatReloader