-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdjango_error.log
More file actions
180 lines (180 loc) · 14.3 KB
/
django_error.log
File metadata and controls
180 lines (180 loc) · 14.3 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
Internal Server Error: /api/accounts/register
Traceback (most recent call last):
File "C:\Users\hp\.virtualenvs\storefront-8g4Nfhva\Lib\site-packages\django\core\handlers\exception.py", line 55, in inner
response = get_response(request)
^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\hp\.virtualenvs\storefront-8g4Nfhva\Lib\site-packages\django\utils\deprecation.py", line 131, in __call__
response = self.process_response(request, response)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\hp\.virtualenvs\storefront-8g4Nfhva\Lib\site-packages\django\middleware\common.py", line 108, in process_response
return self.response_redirect_class(self.get_full_path_with_slash(request))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\hp\.virtualenvs\storefront-8g4Nfhva\Lib\site-packages\django\middleware\common.py", line 87, in get_full_path_with_slash
raise RuntimeError(
RuntimeError: You called this URL via POST, but the URL doesn't end in a slash and you have APPEND_SLASH set. Django can't redirect to the slash URL while maintaining POST data. Change your form to point to 127.0.0.1:8000/api/accounts/register/ (note the trailing slash), or set APPEND_SLASH=False in your Django settings.
"POST /api/accounts/register HTTP/1.1" 500 72527
Internal Server Error: /api/tasks/create
Traceback (most recent call last):
File "C:\Users\hp\.virtualenvs\storefront-8g4Nfhva\Lib\site-packages\django\core\handlers\exception.py", line 55, in inner
response = get_response(request)
^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\hp\.virtualenvs\storefront-8g4Nfhva\Lib\site-packages\django\utils\deprecation.py", line 131, in __call__
response = self.process_response(request, response)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\hp\.virtualenvs\storefront-8g4Nfhva\Lib\site-packages\django\middleware\common.py", line 108, in process_response
return self.response_redirect_class(self.get_full_path_with_slash(request))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\hp\.virtualenvs\storefront-8g4Nfhva\Lib\site-packages\django\middleware\common.py", line 87, in get_full_path_with_slash
raise RuntimeError(
RuntimeError: You called this URL via POST, but the URL doesn't end in a slash and you have APPEND_SLASH set. Django can't redirect to the slash URL while maintaining POST data. Change your form to point to 127.0.0.1:8000/api/tasks/create/ (note the trailing slash), or set APPEND_SLASH=False in your Django settings.
"POST /api/tasks/create HTTP/1.1" 500 72440
Internal Server Error: /api/tasks/create/
Traceback (most recent call last):
File "C:\Users\hp\.virtualenvs\storefront-8g4Nfhva\Lib\site-packages\django\core\handlers\exception.py", line 55, in inner
response = get_response(request)
^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\hp\.virtualenvs\storefront-8g4Nfhva\Lib\site-packages\django\core\handlers\base.py", line 197, in _get_response
response = wrapped_callback(request, *callback_args, **callback_kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\hp\.virtualenvs\storefront-8g4Nfhva\Lib\site-packages\django\views\decorators\csrf.py", line 65, in _view_wrapper
return view_func(request, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\hp\.virtualenvs\storefront-8g4Nfhva\Lib\site-packages\rest_framework\viewsets.py", line 124, in view
return self.dispatch(request, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\hp\.virtualenvs\storefront-8g4Nfhva\Lib\site-packages\rest_framework\views.py", line 509, in dispatch
response = self.handle_exception(exc)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\hp\.virtualenvs\storefront-8g4Nfhva\Lib\site-packages\rest_framework\views.py", line 469, in handle_exception
self.raise_uncaught_exception(exc)
File "C:\Users\hp\.virtualenvs\storefront-8g4Nfhva\Lib\site-packages\rest_framework\views.py", line 480, in raise_uncaught_exception
raise exc
File "C:\Users\hp\.virtualenvs\storefront-8g4Nfhva\Lib\site-packages\rest_framework\views.py", line 506, in dispatch
response = handler(request, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\hp\OneDrive\Desktop\ALX\Task_Management_API\tasks\views.py", line 36, in create
serializer.save(user=request.user) # Save the task with the authenticated user
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\hp\.virtualenvs\storefront-8g4Nfhva\Lib\site-packages\rest_framework\serializers.py", line 208, in save
self.instance = self.create(validated_data)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\hp\.virtualenvs\storefront-8g4Nfhva\Lib\site-packages\rest_framework\serializers.py", line 989, in create
instance = ModelClass._default_manager.create(**validated_data)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\hp\.virtualenvs\storefront-8g4Nfhva\Lib\site-packages\django\db\models\manager.py", line 87, in manager_method
return getattr(self.get_queryset(), name)(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\hp\.virtualenvs\storefront-8g4Nfhva\Lib\site-packages\django\db\models\query.py", line 679, in create
obj.save(force_insert=True, using=self.db)
File "C:\Users\hp\OneDrive\Desktop\ALX\Task_Management_API\tasks\models.py", line 47, in save
self.full_clean() # Call clean() before saving
^^^^^^^^^^^^^^^^^
File "C:\Users\hp\.virtualenvs\storefront-8g4Nfhva\Lib\site-packages\django\db\models\base.py", line 1651, in full_clean
raise ValidationError(errors)
django.core.exceptions.ValidationError: {'__all__': ['Due date must be in the future.']}
"POST /api/tasks/create/ HTTP/1.1" 500 128770
Internal Server Error: /api/tasks/create/
Traceback (most recent call last):
File "C:\Users\hp\.virtualenvs\storefront-8g4Nfhva\Lib\site-packages\django\core\handlers\exception.py", line 55, in inner
response = get_response(request)
^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\hp\.virtualenvs\storefront-8g4Nfhva\Lib\site-packages\django\core\handlers\base.py", line 197, in _get_response
response = wrapped_callback(request, *callback_args, **callback_kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\hp\.virtualenvs\storefront-8g4Nfhva\Lib\site-packages\django\views\decorators\csrf.py", line 65, in _view_wrapper
return view_func(request, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\hp\.virtualenvs\storefront-8g4Nfhva\Lib\site-packages\rest_framework\viewsets.py", line 124, in view
return self.dispatch(request, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\hp\.virtualenvs\storefront-8g4Nfhva\Lib\site-packages\rest_framework\views.py", line 509, in dispatch
response = self.handle_exception(exc)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\hp\.virtualenvs\storefront-8g4Nfhva\Lib\site-packages\rest_framework\views.py", line 469, in handle_exception
self.raise_uncaught_exception(exc)
File "C:\Users\hp\.virtualenvs\storefront-8g4Nfhva\Lib\site-packages\rest_framework\views.py", line 480, in raise_uncaught_exception
raise exc
File "C:\Users\hp\.virtualenvs\storefront-8g4Nfhva\Lib\site-packages\rest_framework\views.py", line 506, in dispatch
response = handler(request, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\hp\OneDrive\Desktop\ALX\Task_Management_API\tasks\views.py", line 36, in create
serializer.save(user=request.user) # Save the task with the authenticated user
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\hp\.virtualenvs\storefront-8g4Nfhva\Lib\site-packages\rest_framework\serializers.py", line 208, in save
self.instance = self.create(validated_data)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\hp\.virtualenvs\storefront-8g4Nfhva\Lib\site-packages\rest_framework\serializers.py", line 989, in create
instance = ModelClass._default_manager.create(**validated_data)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\hp\.virtualenvs\storefront-8g4Nfhva\Lib\site-packages\django\db\models\manager.py", line 87, in manager_method
return getattr(self.get_queryset(), name)(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\hp\.virtualenvs\storefront-8g4Nfhva\Lib\site-packages\django\db\models\query.py", line 679, in create
obj.save(force_insert=True, using=self.db)
File "C:\Users\hp\OneDrive\Desktop\ALX\Task_Management_API\tasks\models.py", line 47, in save
self.full_clean() # Call clean() before saving
^^^^^^^^^^^^^^^^^
File "C:\Users\hp\.virtualenvs\storefront-8g4Nfhva\Lib\site-packages\django\db\models\base.py", line 1651, in full_clean
raise ValidationError(errors)
django.core.exceptions.ValidationError: {'__all__': ['Due date must be in the future.']}
"POST /api/tasks/create/ HTTP/1.1" 500 128734
Internal Server Error: /api/categories/create
Traceback (most recent call last):
File "C:\Users\hp\.virtualenvs\storefront-8g4Nfhva\Lib\site-packages\django\core\handlers\exception.py", line 55, in inner
response = get_response(request)
^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\hp\.virtualenvs\storefront-8g4Nfhva\Lib\site-packages\django\utils\deprecation.py", line 131, in __call__
response = self.process_response(request, response)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\hp\.virtualenvs\storefront-8g4Nfhva\Lib\site-packages\django\middleware\common.py", line 108, in process_response
return self.response_redirect_class(self.get_full_path_with_slash(request))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\hp\.virtualenvs\storefront-8g4Nfhva\Lib\site-packages\django\middleware\common.py", line 87, in get_full_path_with_slash
raise RuntimeError(
RuntimeError: You called this URL via POST, but the URL doesn't end in a slash and you have APPEND_SLASH set. Django can't redirect to the slash URL while maintaining POST data. Change your form to point to 127.0.0.1:8000/api/categories/create/ (note the trailing slash), or set APPEND_SLASH=False in your Django settings.
"POST /api/categories/create HTTP/1.1" 500 72528
Internal Server Error: /api/categories/create
Traceback (most recent call last):
File "C:\Users\hp\.virtualenvs\storefront-8g4Nfhva\Lib\site-packages\django\core\handlers\exception.py", line 55, in inner
response = get_response(request)
^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\hp\.virtualenvs\storefront-8g4Nfhva\Lib\site-packages\django\utils\deprecation.py", line 131, in __call__
response = self.process_response(request, response)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\hp\.virtualenvs\storefront-8g4Nfhva\Lib\site-packages\django\middleware\common.py", line 108, in process_response
return self.response_redirect_class(self.get_full_path_with_slash(request))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\hp\.virtualenvs\storefront-8g4Nfhva\Lib\site-packages\django\middleware\common.py", line 87, in get_full_path_with_slash
raise RuntimeError(
RuntimeError: You called this URL via POST, but the URL doesn't end in a slash and you have APPEND_SLASH set. Django can't redirect to the slash URL while maintaining POST data. Change your form to point to 127.0.0.1:8000/api/categories/create/ (note the trailing slash), or set APPEND_SLASH=False in your Django settings.
"POST /api/categories/create HTTP/1.1" 500 72528
Internal Server Error: /api/categories/create
Traceback (most recent call last):
File "C:\Users\hp\.virtualenvs\storefront-8g4Nfhva\Lib\site-packages\django\core\handlers\exception.py", line 55, in inner
response = get_response(request)
^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\hp\.virtualenvs\storefront-8g4Nfhva\Lib\site-packages\django\utils\deprecation.py", line 131, in __call__
response = self.process_response(request, response)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\hp\.virtualenvs\storefront-8g4Nfhva\Lib\site-packages\django\middleware\common.py", line 108, in process_response
return self.response_redirect_class(self.get_full_path_with_slash(request))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\hp\.virtualenvs\storefront-8g4Nfhva\Lib\site-packages\django\middleware\common.py", line 87, in get_full_path_with_slash
raise RuntimeError(
RuntimeError: You called this URL via POST, but the URL doesn't end in a slash and you have APPEND_SLASH set. Django can't redirect to the slash URL while maintaining POST data. Change your form to point to 127.0.0.1:8000/api/categories/create/ (note the trailing slash), or set APPEND_SLASH=False in your Django settings.
"POST /api/categories/create HTTP/1.1" 500 72528
Internal Server Error: /api/categories/create
Traceback (most recent call last):
File "C:\Users\hp\.virtualenvs\storefront-8g4Nfhva\Lib\site-packages\django\core\handlers\exception.py", line 55, in inner
response = get_response(request)
^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\hp\.virtualenvs\storefront-8g4Nfhva\Lib\site-packages\django\utils\deprecation.py", line 131, in __call__
response = self.process_response(request, response)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\hp\.virtualenvs\storefront-8g4Nfhva\Lib\site-packages\django\middleware\common.py", line 108, in process_response
return self.response_redirect_class(self.get_full_path_with_slash(request))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\hp\.virtualenvs\storefront-8g4Nfhva\Lib\site-packages\django\middleware\common.py", line 87, in get_full_path_with_slash
raise RuntimeError(
RuntimeError: You called this URL via POST, but the URL doesn't end in a slash and you have APPEND_SLASH set. Django can't redirect to the slash URL while maintaining POST data. Change your form to point to 127.0.0.1:8000/api/categories/create/ (note the trailing slash), or set APPEND_SLASH=False in your Django settings.
"POST /api/categories/create HTTP/1.1" 500 72528