· 6 years ago · Jun 21, 2019, 10:14 AM
1TypeError at /api/v1/company/jobs/vacancy/2094/cv/
2Object of type PhoneNumber is not JSON serializable
3Request Method: GET
4Request URL: http://45.118.134.76:9880/api/v1/company/jobs/vacancy/2094/cv/
5Django Version: 2.2.1
6Exception Type: TypeError
7Exception Value:
8Object of type PhoneNumber is not JSON serializable
9Exception Location: /usr/local/lib/python3.7/json/encoder.py in default, line 179
10Python Executable: /opt/env/bin/python
11Python Version: 3.7.3
12Python Path:
13['/opt/cs_api',
14 '/opt/cs_api',
15 '/opt/env/lib/python37.zip',
16 '/opt/env/lib/python3.7',
17 '/opt/env/lib/python3.7/lib-dynload',
18 '/usr/local/lib/python3.7',
19 '/opt/env/lib/python3.7/site-packages']
20Server time: Fri, 21 Jun 2019 17:10:01 +0700
21Traceback Switch to copy-and-paste view
22/opt/env/lib/python3.7/site-packages/django/core/handlers/exception.py in inner
23 This decorator is automatically applied to all middleware to ensure that
24 no middleware leaks an exception and that the next middleware in the stack
25 can rely on getting a response instead of an exception.
26 """
27 @wraps(get_response)
28 def inner(request):
29 try:
30 response = get_response(request) …
31 except Exception as exc:
32 response = response_for_exception(request, exc)
33 return response
34 return inner
35▶ Local vars
36Variable Value
37exc
38TypeError('Object of type PhoneNumber is not JSON serializable')
39get_response
40<bound method BaseHandler._get_response of <django.core.handlers.wsgi.WSGIHandler object at 0x7f8c94c1c0b8>>
41request
42<WSGIRequest: GET '/api/v1/company/jobs/vacancy/2094/cv/'>
43/opt/env/lib/python3.7/site-packages/django/core/handlers/base.py in _get_response
44 "HttpResponse object. It returned None instead."
45 % (middleware_method.__self__.__class__.__name__)
46 )
47 try:
48 response = response.render()
49 except Exception as e:
50 response = self.process_exception_by_middleware(e, request) …
51 return response
52 def process_exception_by_middleware(self, exception, request):
53 """
54 Pass the exception to the exception middleware. If no middleware
55▶ Local vars
56Variable Value
57callback
58<function JobCandidateAppliedListView at 0x7f8c7c3be730>
59callback_args
60()
61callback_kwargs
62{'id': 2094}
63middleware_method
64<bound method CsrfViewMiddleware.process_view of <django.middleware.csrf.CsrfViewMiddleware object at 0x7f8c94d3c780>>
65request
66<WSGIRequest: GET '/api/v1/company/jobs/vacancy/2094/cv/'>
67resolver
68<URLResolver 'career_support_api.urls' (None:None) '^/'>
69resolver_match
70ResolverMatch(func=cs_employer.views.job.JobCandidateAppliedListView, args=(), kwargs={'id': 2094}, url_name=job_vacancy_cv_list, app_names=[], namespaces=[], route=api/v1/company/jobs/vacancy/<int:id>/cv/)
71response
72<Response status_code=200, "application/json">
73self
74<django.core.handlers.wsgi.WSGIHandler object at 0x7f8c94c1c0b8>
75wrapped_callback
76<function JobCandidateAppliedListView at 0x7f8c7c3be730>
77/opt/env/lib/python3.7/site-packages/django/core/handlers/base.py in _get_response
78 raise ValueError(
79 "%s.process_template_response didn't return an "
80 "HttpResponse object. It returned None instead."
81 % (middleware_method.__self__.__class__.__name__)
82 )
83 try:
84 response = response.render() …
85 except Exception as e:
86 response = self.process_exception_by_middleware(e, request)
87 return response
88 def process_exception_by_middleware(self, exception, request):
89▶ Local vars
90Variable Value
91callback
92<function JobCandidateAppliedListView at 0x7f8c7c3be730>
93callback_args
94()
95callback_kwargs
96{'id': 2094}
97middleware_method
98<bound method CsrfViewMiddleware.process_view of <django.middleware.csrf.CsrfViewMiddleware object at 0x7f8c94d3c780>>
99request
100<WSGIRequest: GET '/api/v1/company/jobs/vacancy/2094/cv/'>
101resolver
102<URLResolver 'career_support_api.urls' (None:None) '^/'>
103resolver_match
104ResolverMatch(func=cs_employer.views.job.JobCandidateAppliedListView, args=(), kwargs={'id': 2094}, url_name=job_vacancy_cv_list, app_names=[], namespaces=[], route=api/v1/company/jobs/vacancy/<int:id>/cv/)
105response
106<Response status_code=200, "application/json">
107self
108<django.core.handlers.wsgi.WSGIHandler object at 0x7f8c94c1c0b8>
109wrapped_callback
110<function JobCandidateAppliedListView at 0x7f8c7c3be730>
111/opt/env/lib/python3.7/site-packages/django/template/response.py in render
112 If the content has already been rendered, this is a no-op.
113 Return the baked response instance.
114 """
115 retval = self
116 if not self._is_rendered:
117 self.content = self.rendered_content …
118 for post_callback in self._post_render_callbacks:
119 newretval = post_callback(retval)
120 if newretval is not None:
121 retval = newretval
122 return retval
123▶ Local vars
124Variable Value
125retval
126<Response status_code=200, "application/json">
127self
128<Response status_code=200, "application/json">
129/opt/env/lib/python3.7/site-packages/rest_framework/response.py in rendered_content
130 if content_type is None and charset is not None:
131 content_type = "{0}; charset={1}".format(media_type, charset)
132 elif content_type is None:
133 content_type = media_type
134 self['Content-Type'] = content_type
135 ret = renderer.render(self.data, accepted_media_type, context) …
136 if isinstance(ret, six.text_type):
137 assert charset, (
138 'renderer returned unicode, and did not specify '
139 'a charset value.'
140 )
141 return bytes(ret.encode(charset))
142▶ Local vars
143Variable Value
144accepted_media_type
145'application/json'
146charset
147None
148content_type
149'application/json'
150context
151{'args': (),
152 'kwargs': {'id': 2094},
153 'request': <rest_framework.request.Request object at 0x7f8c792cfbe0>,
154 'response': <Response status_code=200, "application/json">,
155 'view': <cs_employer.views.job.JobCandidateAppliedListView object at 0x7f8c795013c8>}
156media_type
157'application/json'
158renderer
159<rest_framework.renderers.JSONRenderer object at 0x7f8c792cf6d8>
160self
161<Response status_code=200, "application/json">
162/opt/env/lib/python3.7/site-packages/rest_framework/renderers.py in render
163 separators = SHORT_SEPARATORS if self.compact else LONG_SEPARATORS
164 else:
165 separators = INDENT_SEPARATORS
166 ret = json.dumps(
167 data, cls=self.encoder_class,
168 indent=indent, ensure_ascii=self.ensure_ascii,
169 allow_nan=not self.strict, separators=separators …
170 )
171 # On python 2.x json.dumps() returns bytestrings if ensure_ascii=True,
172 # but if ensure_ascii=False, the return type is underspecified,
173 # and may (or may not) be unicode.
174 # On python 3.x json.dumps() returns unicode strings.
175▶ Local vars
176Variable Value
177accepted_media_type
178'application/json'
179data
180{'cv': {'count': 1,
181 'next': None,
182 'previous': None,
183 'results': [{'cv': {'id': 23,
184 'name': 'Fitri R',
185 'position': None,
186 'uploaded_cv': None,
187 'user': {'email': 'h4z.cyber@gmail.com',
188 'first_name': 'Fitri',
189 'is_student': True,
190 'last_name': 'R',
191 'phone': PhoneNumber(country_code=62, national_number=8123456789, extension=None, italian_leading_zero=None, number_of_leading_zeros=None, country_code_source=1, preferred_domestic_carrier_code=None),
192 'username': 'h4z.cyber@gmail.com'}},
193 'id': 54,
194 'status': 2}]},
195 'job_vacancy': {'active': True,
196 'company': 1360,
197 'detail': OrderedDict([('id', 2146),
198 ('company',
199 OrderedDict([('id', 1360),
200 ('employer_account',
201 None),
202 ('created',
203 '2019-06-19 10:43:23'),
204 ('modified',
205 '2019-06-20 11:17:01'),
206 ('company_banner',
207 '/media/employer/Aktifasi_Digital_Banking.png'),
208 ('company_logo',
209 '/media/employer/download_9YTaC3Y.png'),
210 ('company_name',
211 'PT Indonesia Raya'),
212 ('company_desc', None),
213 ('company_value',
214 'Test 1'),
215 ('npwp', None),
216 ('agreement', None),
217 ('address',
218 'Jalan Merdeka 01'),
219 ('postal_code', '63582'),
220 ('phone', None),
221 ('website',
222 'http://google.com'),
223 ('email', None),
224 ('facebookURL',
225 'http://facebook.com'),
226 ('twitterURL',
227 'http://twitter.com/frisid'),
228 ('googleURL',
229 'http://google.com/frisidea'),
230 ('linkedinURL',
231 'http://linkedin.com/frisidea'),
232 ('pinterestURL',
233 'http://pinterest.com/frisidea'),
234 ('size', 0),
235 ('is_favorite', False),
236 ('industry', 118),
237 ('city', 579)])),
238 ('employment_type',
239 OrderedDict([('id', 7),
240 … <trimmed 17887 bytes string>
241indent
242None
243renderer_context
244{'args': (),
245 'kwargs': {'id': 2094},
246 'request': <rest_framework.request.Request object at 0x7f8c792cfbe0>,
247 'response': <Response status_code=200, "application/json">,
248 'view': <cs_employer.views.job.JobCandidateAppliedListView object at 0x7f8c795013c8>}
249self
250<rest_framework.renderers.JSONRenderer object at 0x7f8c792cf6d8>
251separators
252(',', ':')
253/opt/env/lib/python3.7/site-packages/rest_framework/utils/json.py in dumps
254 kwargs.setdefault('allow_nan', False)
255 return json.dump(*args, **kwargs)
256@functools.wraps(json.dumps)
257def dumps(*args, **kwargs):
258 kwargs.setdefault('allow_nan', False)
259 return json.dumps(*args, **kwargs) …
260@functools.wraps(json.load)
261def load(*args, **kwargs):
262 kwargs.setdefault('parse_constant', strict_constant)
263 return json.load(*args, **kwargs)
264▶ Local vars
265Variable Value
266args
267({'cv': {'count': 1,
268 'next': None,
269 'previous': None,
270 'results': [{'cv': {'id': 23,
271 'name': 'Fitri R',
272 'position': None,
273 'uploaded_cv': None,
274 'user': {'email': 'h4z.cyber@gmail.com',
275 'first_name': 'Fitri',
276 'is_student': True,
277 'last_name': 'R',
278 'phone': PhoneNumber(country_code=62, national_number=8123456789, extension=None, italian_leading_zero=None, number_of_leading_zeros=None, country_code_source=1, preferred_domestic_carrier_code=None),
279 'username': 'h4z.cyber@gmail.com'}},
280 'id': 54,
281 'status': 2}]},
282 'job_vacancy': {'active': True,
283 'company': 1360,
284 'detail': OrderedDict([('id', 2146),
285 ('company',
286 OrderedDict([('id', 1360),
287 ('employer_account',
288 None),
289 ('created',
290 '2019-06-19 10:43:23'),
291 ('modified',
292 '2019-06-20 11:17:01'),
293 ('company_banner',
294 '/media/employer/Aktifasi_Digital_Banking.png'),
295 ('company_logo',
296 '/media/employer/download_9YTaC3Y.png'),
297 ('company_name',
298 'PT Indonesia Raya'),
299 ('company_desc', None),
300 ('company_value',
301 'Test 1'),
302 ('npwp', None),
303 ('agreement', None),
304 ('address',
305 'Jalan Merdeka 01'),
306 ('postal_code', '63582'),
307 ('phone', None),
308 ('website',
309 'http://google.com'),
310 ('email', None),
311 ('facebookURL',
312 'http://facebook.com'),
313 ('twitterURL',
314 'http://twitter.com/frisid'),
315 ('googleURL',
316 'http://google.com/frisidea'),
317 ('linkedinURL',
318 'http://linkedin.com/frisidea'),
319 ('pinterestURL',
320 'http://pinterest.com/frisidea'),
321 ('size', 0),
322 ('is_favorite', False),
323 ('industry', 118),
324 ('city', 579)])),
325 ('employment_type',
326 … <trimmed 18319 bytes string>
327kwargs
328{'allow_nan': False,
329 'cls': <class 'rest_framework.utils.encoders.JSONEncoder'>,
330 'ensure_ascii': False,
331 'indent': None,
332 'separators': (',', ':')}
333/usr/local/lib/python3.7/json/__init__.py in dumps
334 return _default_encoder.encode(obj)
335 if cls is None:
336 cls = JSONEncoder
337 return cls(
338 skipkeys=skipkeys, ensure_ascii=ensure_ascii,
339 check_circular=check_circular, allow_nan=allow_nan, indent=indent,
340 separators=separators, default=default, sort_keys=sort_keys,
341 **kw).encode(obj) …
342_default_decoder = JSONDecoder(object_hook=None, object_pairs_hook=None)
343def detect_encoding(b):
344▶ Local vars
345Variable Value
346allow_nan
347False
348check_circular
349True
350cls
351<class 'rest_framework.utils.encoders.JSONEncoder'>
352default
353None
354ensure_ascii
355False
356indent
357None
358kw
359{}
360obj
361{'cv': {'count': 1,
362 'next': None,
363 'previous': None,
364 'results': [{'cv': {'id': 23,
365 'name': 'Fitri R',
366 'position': None,
367 'uploaded_cv': None,
368 'user': {'email': 'h4z.cyber@gmail.com',
369 'first_name': 'Fitri',
370 'is_student': True,
371 'last_name': 'R',
372 'phone': PhoneNumber(country_code=62, national_number=8123456789, extension=None, italian_leading_zero=None, number_of_leading_zeros=None, country_code_source=1, preferred_domestic_carrier_code=None),
373 'username': 'h4z.cyber@gmail.com'}},
374 'id': 54,
375 'status': 2}]},
376 'job_vacancy': {'active': True,
377 'company': 1360,
378 'detail': OrderedDict([('id', 2146),
379 ('company',
380 OrderedDict([('id', 1360),
381 ('employer_account',
382 None),
383 ('created',
384 '2019-06-19 10:43:23'),
385 ('modified',
386 '2019-06-20 11:17:01'),
387 ('company_banner',
388 '/media/employer/Aktifasi_Digital_Banking.png'),
389 ('company_logo',
390 '/media/employer/download_9YTaC3Y.png'),
391 ('company_name',
392 'PT Indonesia Raya'),
393 ('company_desc', None),
394 ('company_value',
395 'Test 1'),
396 ('npwp', None),
397 ('agreement', None),
398 ('address',
399 'Jalan Merdeka 01'),
400 ('postal_code', '63582'),
401 ('phone', None),
402 ('website',
403 'http://google.com'),
404 ('email', None),
405 ('facebookURL',
406 'http://facebook.com'),
407 ('twitterURL',
408 'http://twitter.com/frisid'),
409 ('googleURL',
410 'http://google.com/frisidea'),
411 ('linkedinURL',
412 'http://linkedin.com/frisidea'),
413 ('pinterestURL',
414 'http://pinterest.com/frisidea'),
415 ('size', 0),
416 ('is_favorite', False),
417 ('industry', 118),
418 ('city', 579)])),
419 ('employment_type',
420 OrderedDict([('id', 7),
421 … <trimmed 17887 bytes string>
422separators
423(',', ':')
424skipkeys
425False
426sort_keys
427False
428/usr/local/lib/python3.7/json/encoder.py in encode
429 if self.ensure_ascii:
430 return encode_basestring_ascii(o)
431 else:
432 return encode_basestring(o)
433 # This doesn't pass the iterator directly to ''.join() because the
434 # exceptions aren't as detailed. The list call should be roughly
435 # equivalent to the PySequence_Fast that ''.join() would do.
436 chunks = self.iterencode(o, _one_shot=True) …
437 if not isinstance(chunks, (list, tuple)):
438 chunks = list(chunks)
439 return ''.join(chunks)
440 def iterencode(self, o, _one_shot=False):
441 """Encode the given object and yield each string
442▶ Local vars
443Variable Value
444o
445{'cv': {'count': 1,
446 'next': None,
447 'previous': None,
448 'results': [{'cv': {'id': 23,
449 'name': 'Fitri R',
450 'position': None,
451 'uploaded_cv': None,
452 'user': {'email': 'h4z.cyber@gmail.com',
453 'first_name': 'Fitri',
454 'is_student': True,
455 'last_name': 'R',
456 'phone': PhoneNumber(country_code=62, national_number=8123456789, extension=None, italian_leading_zero=None, number_of_leading_zeros=None, country_code_source=1, preferred_domestic_carrier_code=None),
457 'username': 'h4z.cyber@gmail.com'}},
458 'id': 54,
459 'status': 2}]},
460 'job_vacancy': {'active': True,
461 'company': 1360,
462 'detail': OrderedDict([('id', 2146),
463 ('company',
464 OrderedDict([('id', 1360),
465 ('employer_account',
466 None),
467 ('created',
468 '2019-06-19 10:43:23'),
469 ('modified',
470 '2019-06-20 11:17:01'),
471 ('company_banner',
472 '/media/employer/Aktifasi_Digital_Banking.png'),
473 ('company_logo',
474 '/media/employer/download_9YTaC3Y.png'),
475 ('company_name',
476 'PT Indonesia Raya'),
477 ('company_desc', None),
478 ('company_value',
479 'Test 1'),
480 ('npwp', None),
481 ('agreement', None),
482 ('address',
483 'Jalan Merdeka 01'),
484 ('postal_code', '63582'),
485 ('phone', None),
486 ('website',
487 'http://google.com'),
488 ('email', None),
489 ('facebookURL',
490 'http://facebook.com'),
491 ('twitterURL',
492 'http://twitter.com/frisid'),
493 ('googleURL',
494 'http://google.com/frisidea'),
495 ('linkedinURL',
496 'http://linkedin.com/frisidea'),
497 ('pinterestURL',
498 'http://pinterest.com/frisidea'),
499 ('size', 0),
500 ('is_favorite', False),
501 ('industry', 118),
502 ('city', 579)])),
503 ('employment_type',
504 OrderedDict([('id', 7),
505 … <trimmed 17887 bytes string>
506self
507<rest_framework.utils.encoders.JSONEncoder object at 0x7f8c792cf5f8>
508/usr/local/lib/python3.7/json/encoder.py in iterencode
509 self.key_separator, self.item_separator, self.sort_keys,
510 self.skipkeys, self.allow_nan)
511 else:
512 _iterencode = _make_iterencode(
513 markers, self.default, _encoder, self.indent, floatstr,
514 self.key_separator, self.item_separator, self.sort_keys,
515 self.skipkeys, _one_shot)
516 return _iterencode(o, 0) …
517def _make_iterencode(markers, _default, _encoder, _indent, _floatstr,
518 _key_separator, _item_separator, _sort_keys, _skipkeys, _one_shot,
519 ## HACK: hand-optimized bytecode; turn globals into locals
520 ValueError=ValueError,
521 dict=dict,
522▶ Local vars
523Variable Value
524_encoder
525<built-in function encode_basestring>
526_iterencode
527<_json.Encoder object at 0x7f8c79a144c0>
528_one_shot
529True
530floatstr
531<function JSONEncoder.iterencode.<locals>.floatstr at 0x7f8c68c2f620>
532markers
533{140241031949064: [{'cv': {'id': 23,
534 'name': 'Fitri R',
535 'position': None,
536 'uploaded_cv': None,
537 'user': {'email': 'h4z.cyber@gmail.com',
538 'first_name': 'Fitri',
539 'is_student': True,
540 'last_name': 'R',
541 'phone': PhoneNumber(country_code=62, national_number=8123456789, extension=None, italian_leading_zero=None, number_of_leading_zeros=None, country_code_source=1, preferred_domestic_carrier_code=None),
542 'username': 'h4z.cyber@gmail.com'}},
543 'id': 54,
544 'status': 2}],
545 140241083663344: {'cv': {'id': 23,
546 'name': 'Fitri R',
547 'position': None,
548 'uploaded_cv': None,
549 'user': {'email': 'h4z.cyber@gmail.com',
550 'first_name': 'Fitri',
551 'is_student': True,
552 'last_name': 'R',
553 'phone': PhoneNumber(country_code=62, national_number=8123456789, extension=None, italian_leading_zero=None, number_of_leading_zeros=None, country_code_source=1, preferred_domestic_carrier_code=None),
554 'username': 'h4z.cyber@gmail.com'}},
555 'id': 54,
556 'status': 2},
557 140241083664208: {'email': 'h4z.cyber@gmail.com',
558 'first_name': 'Fitri',
559 'is_student': True,
560 'last_name': 'R',
561 'phone': PhoneNumber(country_code=62, national_number=8123456789, extension=None, italian_leading_zero=None, number_of_leading_zeros=None, country_code_source=1, preferred_domestic_carrier_code=None),
562 'username': 'h4z.cyber@gmail.com'},
563 140241286248656: PhoneNumber(country_code=62, national_number=8123456789, extension=None, italian_leading_zero=None, number_of_leading_zeros=None, country_code_source=1, preferred_domestic_carrier_code=None),
564 140241286313232: {'id': 23,
565 'name': 'Fitri R',
566 'position': None,
567 'uploaded_cv': None,
568 'user': {'email': 'h4z.cyber@gmail.com',
569 'first_name': 'Fitri',
570 'is_student': True,
571 'last_name': 'R',
572 'phone': PhoneNumber(country_code=62, national_number=8123456789, extension=None, italian_leading_zero=None, number_of_leading_zeros=None, country_code_source=1, preferred_domestic_carrier_code=None),
573 'username': 'h4z.cyber@gmail.com'}},
574 140241305665328: {'count': 1,
575 'next': None,
576 'previous': None,
577 'results': [{'cv': {'id': 23,
578 'name': 'Fitri R',
579 'position': None,
580 'uploaded_cv': None,
581 'user': {'email': 'h4z.cyber@gmail.com',
582 'first_name': 'Fitri',
583 'is_student': True,
584 'last_name': 'R',
585 'phone': PhoneNumber(country_code=62, national_number=8123456789, extension=None, italian_leading_zero=None, number_of_leading_zeros=None, country_code_source=1, preferred_domestic_carrier_code=None),
586 'username': 'h4z.cyber@gmail.com'}},
587 'id': 54,
588 'status': 2}]},
589 140241306431208: {'cv': {'count': 1,
590 'next': None,
591 'previous': None,
592 'results': [{'cv': {'id': 23,
593 … <trimmed 31147 bytes string>
594o
595{'cv': {'count': 1,
596 'next': None,
597 'previous': None,
598 'results': [{'cv': {'id': 23,
599 'name': 'Fitri R',
600 'position': None,
601 'uploaded_cv': None,
602 'user': {'email': 'h4z.cyber@gmail.com',
603 'first_name': 'Fitri',
604 'is_student': True,
605 'last_name': 'R',
606 'phone': PhoneNumber(country_code=62, national_number=8123456789, extension=None, italian_leading_zero=None, number_of_leading_zeros=None, country_code_source=1, preferred_domestic_carrier_code=None),
607 'username': 'h4z.cyber@gmail.com'}},
608 'id': 54,
609 'status': 2}]},
610 'job_vacancy': {'active': True,
611 'company': 1360,
612 'detail': OrderedDict([('id', 2146),
613 ('company',
614 OrderedDict([('id', 1360),
615 ('employer_account',
616 None),
617 ('created',
618 '2019-06-19 10:43:23'),
619 ('modified',
620 '2019-06-20 11:17:01'),
621 ('company_banner',
622 '/media/employer/Aktifasi_Digital_Banking.png'),
623 ('company_logo',
624 '/media/employer/download_9YTaC3Y.png'),
625 ('company_name',
626 'PT Indonesia Raya'),
627 ('company_desc', None),
628 ('company_value',
629 'Test 1'),
630 ('npwp', None),
631 ('agreement', None),
632 ('address',
633 'Jalan Merdeka 01'),
634 ('postal_code', '63582'),
635 ('phone', None),
636 ('website',
637 'http://google.com'),
638 ('email', None),
639 ('facebookURL',
640 'http://facebook.com'),
641 ('twitterURL',
642 'http://twitter.com/frisid'),
643 ('googleURL',
644 'http://google.com/frisidea'),
645 ('linkedinURL',
646 'http://linkedin.com/frisidea'),
647 ('pinterestURL',
648 'http://pinterest.com/frisidea'),
649 ('size', 0),
650 ('is_favorite', False),
651 ('industry', 118),
652 ('city', 579)])),
653 ('employment_type',
654 OrderedDict([('id', 7),
655 … <trimmed 17887 bytes string>
656self
657<rest_framework.utils.encoders.JSONEncoder object at 0x7f8c792cf5f8>
658/opt/env/lib/python3.7/site-packages/rest_framework/utils/encoders.py in default
659 elif hasattr(obj, '__getitem__'):
660 try:
661 return dict(obj)
662 except Exception:
663 pass
664 elif hasattr(obj, '__iter__'):
665 return tuple(item for item in obj)
666 return super(JSONEncoder, self).default(obj) …
667▶ Local vars
668Variable Value
669__class__
670<class 'rest_framework.utils.encoders.JSONEncoder'>
671obj
672PhoneNumber(country_code=62, national_number=8123456789, extension=None, italian_leading_zero=None, number_of_leading_zeros=None, country_code_source=1, preferred_domestic_carrier_code=None)
673self
674<rest_framework.utils.encoders.JSONEncoder object at 0x7f8c792cf5f8>
675/usr/local/lib/python3.7/json/encoder.py in default
676 pass
677 else:
678 return list(iterable)
679 # Let the base class default method raise the TypeError
680 return JSONEncoder.default(self, o)
681 """
682 raise TypeError(f'Object of type {o.__class__.__name__} ' …
683 f'is not JSON serializable')
684 def encode(self, o):
685 """Return a JSON string representation of a Python data structure.
686 >>> from json.encoder import JSONEncoder
687▶ Local vars
688Variable Value
689o
690PhoneNumber(country_code=62, national_number=8123456789, extension=None, italian_leading_zero=None, number_of_leading_zeros=None, country_code_source=1, preferred_domestic_carrier_code=None)
691self
692<rest_framework.utils.encoders.JSONEncoder object at 0x7f8c792cf5f8>
693Environment:
694
695
696Request Method: GET
697Request URL: http://45.118.134.76:9880/api/v1/company/jobs/vacancy/2094/cv/
698
699Django Version: 2.2.1
700Python Version: 3.7.3
701Installed Applications:
702['djadmin',
703 'advanced_filters',
704 'django.contrib.admin',
705 'django.contrib.auth',
706 'django.contrib.sites',
707 'django.contrib.contenttypes',
708 'django.contrib.sessions',
709 'django.contrib.messages',
710 'django.contrib.staticfiles',
711 'celery',
712 'rest_framework',
713 'rest_framework_jwt',
714 'django_filters',
715 'corsheaders',
716 'drf_yasg',
717 'anymail',
718 'allauth',
719 'allauth.account',
720 'allauth.socialaccount',
721 'allauth.socialaccount.providers.google',
722 'allauth.socialaccount.providers.twitter',
723 'allauth.socialaccount.providers.facebook',
724 'allauth.socialaccount.providers.instagram',
725 'allauth.socialaccount.providers.linkedin_oauth2',
726 'career_support_models',
727 'cs_administrator.apps.CsAdministratorConfig',
728 'cs_advertisement.apps.CsAdvertisementConfig',
729 'cs_authentication.apps.CsAuthenticationConfig',
730 'cs_billing.apps.CsBillingConfig',
731 'cs_core.apps.CsCoreConfig',
732 'cs_candidate.apps.CsCandidateConfig',
733 'cs_employer.apps.CsEmployerConfig',
734 'cs_faq.apps.CsFAQConfig',
735 'cs_history.apps.CsHistoryConfig',
736 'cs_interview.apps.CsInterviewConfig',
737 'cs_job.apps.CsJobConfig',
738 'cs_log.apps.CsLogConfig',
739 'cs_message.apps.CsMessageConfig',
740 'cs_news.apps.CsNewsConfig',
741 'cs_organization.apps.CsOrganizationConfig',
742 'cs_profile.apps.CsProfileConfig',
743 'cs_region.apps.CsRegionConfig',
744 'cs_requirement.apps.CsRequirementConfig',
745 'cs_school.apps.CsSchoolConfig',
746 'cs_social.apps.CsSocialConfig',
747 'cs_transaction.apps.CsTransactionConfig',
748 'cs_user.apps.CsUserConfig',
749 'dbbackup']
750Installed Middleware:
751['django.middleware.security.SecurityMiddleware',
752 'corsheaders.middleware.CorsMiddleware',
753 'django.contrib.sessions.middleware.SessionMiddleware',
754 'django.middleware.common.CommonMiddleware',
755 'django.middleware.csrf.CsrfViewMiddleware',
756 'django.contrib.auth.middleware.AuthenticationMiddleware',
757 'django.contrib.messages.middleware.MessageMiddleware',
758 'django.middleware.clickjacking.XFrameOptionsMiddleware',
759 'djadmin.middleware.DJMiddleware']
760
761
762
763Traceback:
764
765File "/opt/env/lib/python3.7/site-packages/django/core/handlers/exception.py" in inner
766 34. response = get_response(request)
767
768File "/opt/env/lib/python3.7/site-packages/django/core/handlers/base.py" in _get_response
769 145. response = self.process_exception_by_middleware(e, request)
770
771File "/opt/env/lib/python3.7/site-packages/django/core/handlers/base.py" in _get_response
772 143. response = response.render()
773
774File "/opt/env/lib/python3.7/site-packages/django/template/response.py" in render
775 106. self.content = self.rendered_content
776
777File "/opt/env/lib/python3.7/site-packages/rest_framework/response.py" in rendered_content
778 72. ret = renderer.render(self.data, accepted_media_type, context)
779
780File "/opt/env/lib/python3.7/site-packages/rest_framework/renderers.py" in render
781 107. allow_nan=not self.strict, separators=separators
782
783File "/opt/env/lib/python3.7/site-packages/rest_framework/utils/json.py" in dumps
784 28. return json.dumps(*args, **kwargs)
785
786File "/usr/local/lib/python3.7/json/__init__.py" in dumps
787 238. **kw).encode(obj)
788
789File "/usr/local/lib/python3.7/json/encoder.py" in encode
790 199. chunks = self.iterencode(o, _one_shot=True)
791
792File "/usr/local/lib/python3.7/json/encoder.py" in iterencode
793 257. return _iterencode(o, 0)
794
795File "/opt/env/lib/python3.7/site-packages/rest_framework/utils/encoders.py" in default
796 68. return super(JSONEncoder, self).default(obj)
797
798File "/usr/local/lib/python3.7/json/encoder.py" in default
799 179. raise TypeError(f'Object of type {o.__class__.__name__} '
800
801Exception Type: TypeError at /api/v1/company/jobs/vacancy/2094/cv/
802Exception Value: Object of type PhoneNumber is not JSON serializable
803
804
805
806Request information
807USER
808hanang.yohana@frisidea.com
809
810GET
811No GET data
812
813POST
814No POST data
815
816FILES
817No FILES data
818
819COOKIES
820No cookie data
821
822META
823Variable Value
824CONTENT_LENGTH
825''
826CONTENT_TYPE
827'text/plain'
828DJANGO_SETTINGS_MODULE
829'career_support_api.settings'
830GATEWAY_INTERFACE
831'CGI/1.1'
832HISTCONTROL
833'ignoredups'
834HISTSIZE
835'1000'
836HOME
837'/root'
838HOSTNAME
839'li1441-76.members.linode.com'
840HTTP_ACCEPT
841'application/json, text/plain, */*'
842HTTP_ACCEPT_ENCODING
843'gzip, deflate'
844HTTP_ACCEPT_LANGUAGE
845'id-ID,id;q=0.9,en-US;q=0.8,en;q=0.7'
846HTTP_AUTHORIZATION
847('JWT '
848 'eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzUxMiJ9.eyJ1c2VyX2lkIjozNjIsInVzZXJuYW1lIjoiaGFuYW5nLnlvaGFuYUBmcmlzaWRlYS5jb20iLCJleHAiOjE1NjExMjk3OTksImVtYWlsIjoiaGFuYW5nLnlvaGFuYUBmcmlzaWRlYS5jb20iLCJvcmlnX2lhdCI6MTU2MTEwNzIyNn0.23gWhDHXINfcuhfS-UC60x7ZIwn5xbnAH6tg-Tu5lbrMrZA_lV2mnrkWKGquDWwcStbEo6a7FgoJFxbiSRPTpA')
849HTTP_CACHE_CONTROL
850'no-cache'
851HTTP_CONNECTION
852'keep-alive'
853HTTP_HOST
854'45.118.134.76:9880'
855HTTP_ORIGIN
856'http://0.0.0.0:8000'
857HTTP_PRAGMA
858'no-cache'
859HTTP_REFERER
860'http://0.0.0.0:8000/job/2094'
861HTTP_USER_AGENT
862('Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) '
863 'Chrome/74.0.3729.169 Safari/537.36')
864LANG
865'en_US.UTF-8'
866LANGUAGE
867'en_US.UTF-8'
868LC_COLLATE
869'C'
870LC_CTYPE
871'en_US.UTF-8'
872LESSOPEN
873'||/usr/bin/lesspipe.sh %s'
874LOGNAME
875'root'
876LS_COLORS
877'rs=0:di=38;5;27:ln=38;5;51:mh=44;38;5;15:pi=40;38;5;11:so=38;5;13:do=38;5;5:bd=48;5;232;38;5;11:cd=48;5;232;38;5;3:or=48;5;232;38;5;9:mi=05;48;5;232;38;5;15:su=48;5;196;38;5;15:sg=48;5;11;38;5;16:ca=48;5;196;38;5;226:tw=48;5;10;38;5;16:ow=48;5;10;38;5;21:st=48;5;21;38;5;15:ex=38;5;34:*.tar=38;5;9:*.tgz=38;5;9:*.arc=38;5;9:*.arj=38;5;9:*.taz=38;5;9:*.lha=38;5;9:*.lz4=38;5;9:*.lzh=38;5;9:*.lzma=38;5;9:*.tlz=38;5;9:*.txz=38;5;9:*.tzo=38;5;9:*.t7z=38;5;9:*.zip=38;5;9:*.z=38;5;9:*.Z=38;5;9:*.dz=38;5;9:*.gz=38;5;9:*.lrz=38;5;9:*.lz=38;5;9:*.lzo=38;5;9:*.xz=38;5;9:*.bz2=38;5;9:*.bz=38;5;9:*.tbz=38;5;9:*.tbz2=38;5;9:*.tz=38;5;9:*.deb=38;5;9:*.rpm=38;5;9:*.jar=38;5;9:*.war=38;5;9:*.ear=38;5;9:*.sar=38;5;9:*.rar=38;5;9:*.alz=38;5;9:*.ace=38;5;9:*.zoo=38;5;9:*.cpio=38;5;9:*.7z=38;5;9:*.rz=38;5;9:*.cab=38;5;9:*.jpg=38;5;13:*.jpeg=38;5;13:*.gif=38;5;13:*.bmp=38;5;13:*.pbm=38;5;13:*.pgm=38;5;13:*.ppm=38;5;13:*.tga=38;5;13:*.xbm=38;5;13:*.xpm=38;5;13:*.tif=38;5;13:*.tiff=38;5;13:*.png=38;5;13:*.svg=38;5;13:*.svgz=38;5;13:*.mng=38;5;13:*.pcx=38;5;13:*.mov=38;5;13:*.mpg=38;5;13:*.mpeg=38;5;13:*.m2v=38;5;13:*.mkv=38;5;13:*.webm=38;5;13:*.ogm=38;5;13:*.mp4=38;5;13:*.m4v=38;5;13:*.mp4v=38;5;13:*.vob=38;5;13:*.qt=38;5;13:*.nuv=38;5;13:*.wmv=38;5;13:*.asf=38;5;13:*.rm=38;5;13:*.rmvb=38;5;13:*.flc=38;5;13:*.avi=38;5;13:*.fli=38;5;13:*.flv=38;5;13:*.gl=38;5;13:*.dl=38;5;13:*.xcf=38;5;13:*.xwd=38;5;13:*.yuv=38;5;13:*.cgm=38;5;13:*.emf=38;5;13:*.axv=38;5;13:*.anx=38;5;13:*.ogv=38;5;13:*.ogx=38;5;13:*.aac=38;5;45:*.au=38;5;45:*.flac=38;5;45:*.mid=38;5;45:*.midi=38;5;45:*.mka=38;5;45:*.mp3=38;5;45:*.mpc=38;5;45:*.ogg=38;5;45:*.ra=38;5;45:*.wav=38;5;45:*.axa=38;5;45:*.oga=38;5;45:*.spx=38;5;45:*.xspf=38;5;45:'
878MAIL
879'/var/spool/mail/root'
880NVM_BIN
881'/root/.nvm/versions/node/v12.3.1/bin'
882NVM_CD_FLAGS
883''
884NVM_DIR
885'/root/.nvm'
886OLDPWD
887'/root'
888PATH
889'/opt/env/bin:/root/.nvm/versions/node/v12.3.1/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/root/bin'
890PATH_INFO
891'/api/v1/company/jobs/vacancy/2094/cv/'
892PS1
893'(env) [\\u@\\h \\W]\\$ '
894PWD
895'/opt/cs_api'
896QUERY_STRING
897''
898REMOTE_ADDR
899'172.104.177.245'
900REMOTE_HOST
901''
902REQUEST_METHOD
903'GET'
904RUN_MAIN
905'true'
906SCRIPT_NAME
907''
908SELINUX_LEVEL_REQUESTED
909''
910SELINUX_ROLE_REQUESTED
911''
912SELINUX_USE_CURRENT_RANGE
913''
914SERVER_NAME
915'li1441-76.members.linode.com'
916SERVER_PORT
917'9880'
918SERVER_PROTOCOL
919'HTTP/1.1'
920SERVER_SOFTWARE
921'WSGIServer/0.2'
922SHELL
923'/bin/bash'
924SHLVL
925'1'
926SSH_CLIENT
927'139.194.47.161 49866 22'
928SSH_CONNECTION
929'139.194.47.161 49866 45.118.134.76 22'
930SSH_TTY
931'/dev/pts/0'
932TERM
933'xterm-256color'
934TZ
935'Asia/Jakarta'
936USER
937'root'
938VIRTUAL_ENV
939'/opt/env'
940XDG_RUNTIME_DIR
941'/run/user/0'
942XDG_SESSION_ID
943'4433'
944_
945'/usr/bin/nohup'
946wsgi.errors
947<_io.TextIOWrapper name='<stderr>' mode='w' encoding='UTF-8'>
948wsgi.file_wrapper
949''
950wsgi.input
951<django.core.handlers.wsgi.LimitedStream object at 0x7f8c79a0c2e8>
952wsgi.multiprocess
953False
954wsgi.multithread
955True
956wsgi.run_once
957False
958wsgi.url_scheme
959'http'
960wsgi.version
961(1, 0)
962Settings
963Using settings module career_support_api.settings
964Setting Value
965ABSOLUTE_URL_OVERRIDES
966{}
967ADMINS
968[('Dimas', 'dimas.ari@frisidea.com'),
969 ('Surya', 'komang.suryadana@frisidea.com')]
970ADMIN_COLOR_THEME
971'blue'
972ADMIN_HEADER_TITLE
973'Career Support Administrator'
974ALLOWED_HOSTS
975['localhost',
976 '.karir.work',
977 '.career.support',
978 '127.0.0.1',
979 '0abf327e.ngrok.io',
980 '45.118.134.76',
981 '192.168.5.46',
982 '192.168.5.171']
983ANYMAIL
984{'SENDGRID_API_KEY': '********************'}
985APPEND_SLASH
986True
987AUTHENTICATION_BACKENDS
988['cs_core.backends.authentications_backend.SchoolAuthenticationBackend',
989 'cs_core.backends.authentications_backend.CandidateAuthenticationBackend',
990 'cs_core.backends.authentications_backend.EmployerAuthenticationBackend',
991 'allauth.account.auth_backends.AuthenticationBackend',
992 'django.contrib.auth.backends.ModelBackend']
993AUTH_PASSWORD_VALIDATORS
994'********************'
995AUTH_USER_MODEL
996'career_support_models.User'
997BASE_DIR
998'/opt/cs_api'
999CACHES
1000{'default': {'BACKEND': 'django.core.cache.backends.locmem.LocMemCache'}}
1001CACHE_MIDDLEWARE_ALIAS
1002'default'
1003CACHE_MIDDLEWARE_KEY_PREFIX
1004'********************'
1005CACHE_MIDDLEWARE_SECONDS
1006600
1007CANDIDATE_PORTAL_URL
1008'http://45.118.134.76:7080'
1009CELERY_ACCEPT_CONTENT
1010['application/json']
1011CELERY_BROKER_URL
1012'redis://localhost:6379'
1013CELERY_RESULT_BACKEND
1014'redis://localhost:6379'
1015CELERY_RESULT_SERIALIZER
1016'json'
1017CELERY_TASK_SERIALIZER
1018'json'
1019CELERY_TIMEZONE
1020'Asia/Jakarta'
1021CORS_ORIGIN_ALLOW_ALL
1022True
1023CSRF_COOKIE_AGE
102431449600
1025CSRF_COOKIE_DOMAIN
1026None
1027CSRF_COOKIE_HTTPONLY
1028False
1029CSRF_COOKIE_NAME
1030'csrftoken'
1031CSRF_COOKIE_PATH
1032'/'
1033CSRF_COOKIE_SAMESITE
1034'Lax'
1035CSRF_COOKIE_SECURE
1036False
1037CSRF_FAILURE_VIEW
1038'django.views.csrf.csrf_failure'
1039CSRF_HEADER_NAME
1040'HTTP_X_CSRFTOKEN'
1041CSRF_TRUSTED_ORIGINS
1042[]
1043CSRF_USE_SESSIONS
1044False
1045DATABASES
1046{'default': {'ATOMIC_REQUESTS': False,
1047 'AUTOCOMMIT': True,
1048 'CONN_MAX_AGE': 0,
1049 'ENGINE': 'django.db.backends.postgresql_psycopg2',
1050 'HOST': '45.118.134.76',
1051 'NAME': 'career_support',
1052 'OPTIONS': {},
1053 'PASSWORD': '********************',
1054 'PORT': '5432',
1055 'TEST': {'CHARSET': None,
1056 'COLLATION': None,
1057 'MIRROR': None,
1058 'NAME': None},
1059 'TIME_ZONE': None,
1060 'USER': 'frisidea'}}
1061DATABASE_ROUTERS
1062[]
1063DATA_UPLOAD_MAX_MEMORY_SIZE
10642621440
1065DATA_UPLOAD_MAX_NUMBER_FIELDS
10661000
1067DATETIME_FORMAT
1068'N j, Y, P'
1069DATETIME_INPUT_FORMATS
1070['%Y-%m-%d %H:%M:%S',
1071 '%Y-%m-%d %H:%M:%S.%f',
1072 '%Y-%m-%d %H:%M',
1073 '%Y-%m-%d',
1074 '%m/%d/%Y %H:%M:%S',
1075 '%m/%d/%Y %H:%M:%S.%f',
1076 '%m/%d/%Y %H:%M',
1077 '%m/%d/%Y',
1078 '%m/%d/%y %H:%M:%S',
1079 '%m/%d/%y %H:%M:%S.%f',
1080 '%m/%d/%y %H:%M',
1081 '%m/%d/%y']
1082DATE_FORMAT
1083'N j, Y'
1084DATE_INPUT_FORMATS
1085['%Y-%m-%d',
1086 '%m/%d/%Y',
1087 '%m/%d/%y',
1088 '%b %d %Y',
1089 '%b %d, %Y',
1090 '%d %b %Y',
1091 '%d %b, %Y',
1092 '%B %d %Y',
1093 '%B %d, %Y',
1094 '%d %B %Y',
1095 '%d %B, %Y']
1096DEBUG
1097True
1098DEBUG_PROPAGATE_EXCEPTIONS
1099False
1100DECIMAL_SEPARATOR
1101'.'
1102DEFAULT_CHARSET
1103'utf-8'
1104DEFAULT_CONTENT_TYPE
1105'text/html'
1106DEFAULT_EXCEPTION_REPORTER_FILTER
1107'django.views.debug.SafeExceptionReporterFilter'
1108DEFAULT_FILE_STORAGE
1109'django.core.files.storage.FileSystemStorage'
1110DEFAULT_FROM_EMAIL
1111'noreply@frisidea.com'
1112DEFAULT_INDEX_TABLESPACE
1113''
1114DEFAULT_TABLESPACE
1115''
1116DISALLOWED_USER_AGENTS
1117[]
1118DJADMIN_DYNAMIC_FIELD_DISPLAY
1119True
1120DJADMIN_FIELD_DEPTH
11211
1122EMAIL_BACKEND
1123'anymail.backends.sendgrid.EmailBackend'
1124EMAIL_HOST
1125'localhost'
1126EMAIL_HOST_PASSWORD
1127'********************'
1128EMAIL_HOST_USER
1129''
1130EMAIL_PORT
113125
1132EMAIL_SSL_CERTFILE
1133None
1134EMAIL_SSL_KEYFILE
1135'********************'
1136EMAIL_SUBJECT_PREFIX
1137'[Django] '
1138EMAIL_TIMEOUT
1139None
1140EMAIL_USE_LOCALTIME
1141False
1142EMAIL_USE_SSL
1143False
1144EMAIL_USE_TLS
1145False
1146EMPLOYER_PORTAL_URL
1147'http://45.118.134.76:8080'
1148FILE_CHARSET
1149'utf-8'
1150FILE_UPLOAD_DIRECTORY_PERMISSIONS
1151None
1152FILE_UPLOAD_HANDLERS
1153['django.core.files.uploadhandler.MemoryFileUploadHandler',
1154 'django.core.files.uploadhandler.TemporaryFileUploadHandler']
1155FILE_UPLOAD_MAX_MEMORY_SIZE
11562621440
1157FILE_UPLOAD_PERMISSIONS
1158None
1159FILE_UPLOAD_TEMP_DIR
1160None
1161FIRST_DAY_OF_WEEK
11620
1163FIXTURE_DIRS
1164[]
1165FORCE_SCRIPT_NAME
1166None
1167FORGOT_PASSWORD_URL
1168'********************'
1169FORMAT_MODULE_PATH
1170None
1171FORM_RENDERER
1172'django.forms.renderers.DjangoTemplates'
1173FRONTEND_IP
1174'45.118.134.76'
1175GODADDY_KEY
1176'********************'
1177GODADDY_SECRET
1178'********************'
1179GODADDY_URL
1180'https://api.godaddy.com/v1/domains/karir.work/records'
1181IGNORABLE_404_URLS
1182[]
1183INSTALLED_APPS
1184['djadmin',
1185 'advanced_filters',
1186 'django.contrib.admin',
1187 'django.contrib.auth',
1188 'django.contrib.sites',
1189 'django.contrib.contenttypes',
1190 'django.contrib.sessions',
1191 'django.contrib.messages',
1192 'django.contrib.staticfiles',
1193 'celery',
1194 'rest_framework',
1195 'rest_framework_jwt',
1196 'django_filters',
1197 'corsheaders',
1198 'drf_yasg',
1199 'anymail',
1200 'allauth',
1201 'allauth.account',
1202 'allauth.socialaccount',
1203 'allauth.socialaccount.providers.google',
1204 'allauth.socialaccount.providers.twitter',
1205 'allauth.socialaccount.providers.facebook',
1206 'allauth.socialaccount.providers.instagram',
1207 'allauth.socialaccount.providers.linkedin_oauth2',
1208 'career_support_models',
1209 'cs_administrator.apps.CsAdministratorConfig',
1210 'cs_advertisement.apps.CsAdvertisementConfig',
1211 'cs_authentication.apps.CsAuthenticationConfig',
1212 'cs_billing.apps.CsBillingConfig',
1213 'cs_core.apps.CsCoreConfig',
1214 'cs_candidate.apps.CsCandidateConfig',
1215 'cs_employer.apps.CsEmployerConfig',
1216 'cs_faq.apps.CsFAQConfig',
1217 'cs_history.apps.CsHistoryConfig',
1218 'cs_interview.apps.CsInterviewConfig',
1219 'cs_job.apps.CsJobConfig',
1220 'cs_log.apps.CsLogConfig',
1221 'cs_message.apps.CsMessageConfig',
1222 'cs_news.apps.CsNewsConfig',
1223 'cs_organization.apps.CsOrganizationConfig',
1224 'cs_profile.apps.CsProfileConfig',
1225 'cs_region.apps.CsRegionConfig',
1226 'cs_requirement.apps.CsRequirementConfig',
1227 'cs_school.apps.CsSchoolConfig',
1228 'cs_social.apps.CsSocialConfig',
1229 'cs_transaction.apps.CsTransactionConfig',
1230 'cs_user.apps.CsUserConfig',
1231 'dbbackup']
1232INTERNAL_IPS
1233[]
1234JWT_AUTH
1235{'JWT_ALGORITHM': 'HS512',
1236 'JWT_ALLOW_REFRESH': True,
1237 'JWT_AUDIENCE': None,
1238 'JWT_AUTH_HEADER_PREFIX': 'JWT',
1239 'JWT_EXPIRATION_DELTA': datetime.timedelta(seconds=18000),
1240 'JWT_ISSUER': None,
1241 'JWT_LEEWAY': 10,
1242 'JWT_PAYLOAD_GET_USERNAME_HANDLER': 'cs_core.handlers.jwt_get_username_from_payload_handler',
1243 'JWT_PRIVATE_KEY': '********************',
1244 'JWT_PUBLIC_KEY': '********************',
1245 'JWT_REFRESH_EXPIRATION_DELTA': datetime.timedelta(days=7),
1246 'JWT_RESPONSE_PAYLOAD_HANDLER': 'cs_core.handlers.jwt_response_payload_handler',
1247 'JWT_VERIFY': True,
1248 'JWT_VERIFY_EXPIRATION': True}
1249LANGUAGES
1250[('af', 'Afrikaans'),
1251 ('ar', 'Arabic'),
1252 ('ast', 'Asturian'),
1253 ('az', 'Azerbaijani'),
1254 ('bg', 'Bulgarian'),
1255 ('be', 'Belarusian'),
1256 ('bn', 'Bengali'),
1257 ('br', 'Breton'),
1258 ('bs', 'Bosnian'),
1259 ('ca', 'Catalan'),
1260 ('cs', 'Czech'),
1261 ('cy', 'Welsh'),
1262 ('da', 'Danish'),
1263 ('de', 'German'),
1264 ('dsb', 'Lower Sorbian'),
1265 ('el', 'Greek'),
1266 ('en', 'English'),
1267 ('en-au', 'Australian English'),
1268 ('en-gb', 'British English'),
1269 ('eo', 'Esperanto'),
1270 ('es', 'Spanish'),
1271 ('es-ar', 'Argentinian Spanish'),
1272 ('es-co', 'Colombian Spanish'),
1273 ('es-mx', 'Mexican Spanish'),
1274 ('es-ni', 'Nicaraguan Spanish'),
1275 ('es-ve', 'Venezuelan Spanish'),
1276 ('et', 'Estonian'),
1277 ('eu', 'Basque'),
1278 ('fa', 'Persian'),
1279 ('fi', 'Finnish'),
1280 ('fr', 'French'),
1281 ('fy', 'Frisian'),
1282 ('ga', 'Irish'),
1283 ('gd', 'Scottish Gaelic'),
1284 ('gl', 'Galician'),
1285 ('he', 'Hebrew'),
1286 ('hi', 'Hindi'),
1287 ('hr', 'Croatian'),
1288 ('hsb', 'Upper Sorbian'),
1289 ('hu', 'Hungarian'),
1290 ('hy', 'Armenian'),
1291 ('ia', 'Interlingua'),
1292 ('id', 'Indonesian'),
1293 ('io', 'Ido'),
1294 ('is', 'Icelandic'),
1295 ('it', 'Italian'),
1296 ('ja', 'Japanese'),
1297 ('ka', 'Georgian'),
1298 ('kab', 'Kabyle'),
1299 ('kk', 'Kazakh'),
1300 ('km', 'Khmer'),
1301 ('kn', 'Kannada'),
1302 ('ko', 'Korean'),
1303 ('lb', 'Luxembourgish'),
1304 ('lt', 'Lithuanian'),
1305 ('lv', 'Latvian'),
1306 ('mk', 'Macedonian'),
1307 ('ml', 'Malayalam'),
1308 ('mn', 'Mongolian'),
1309 ('mr', 'Marathi'),
1310 ('my', 'Burmese'),
1311 ('nb', 'Norwegian Bokmål'),
1312 ('ne', 'Nepali'),
1313 ('nl', 'Dutch'),
1314 ('nn', 'Norwegian Nynorsk'),
1315 ('os', 'Ossetic'),
1316 ('pa', 'Punjabi'),
1317 ('pl', 'Polish'),
1318 ('pt', 'Portuguese'),
1319 ('pt-br', 'Brazilian Portuguese'),
1320 ('ro', 'Romanian'),
1321 ('ru', 'Russian'),
1322 ('sk', 'Slovak'),
1323 ('sl', 'Slovenian'),
1324 ('sq', 'Albanian'),
1325 ('sr', 'Serbian'),
1326 ('sr-latn', 'Serbian Latin'),
1327 ('sv', 'Swedish'),
1328 ('sw', 'Swahili'),
1329 ('ta', 'Tamil'),
1330 ('te', 'Telugu'),
1331 ('th', 'Thai'),
1332 ('tr', 'Turkish'),
1333 ('tt', 'Tatar'),
1334 ('udm', 'Udmurt'),
1335 ('uk', 'Ukrainian'),
1336 ('ur', 'Urdu'),
1337 ('vi', 'Vietnamese'),
1338 ('zh-hans', 'Simplified Chinese'),
1339 ('zh-hant', 'Traditional Chinese')]
1340LANGUAGES_BIDI
1341['he', 'ar', 'fa', 'ur']
1342LANGUAGE_CODE
1343'en-us'
1344LANGUAGE_COOKIE_AGE
1345None
1346LANGUAGE_COOKIE_DOMAIN
1347None
1348LANGUAGE_COOKIE_NAME
1349'django_language'
1350LANGUAGE_COOKIE_PATH
1351'/'
1352LOCALE_PATHS
1353[]
1354LOGGING
1355{}
1356LOGGING_CONFIG
1357'logging.config.dictConfig'
1358LOGIN_REDIRECT_URL
1359'/accounts/profile/'
1360LOGIN_URL
1361'/accounts/login/'
1362LOGOUT_REDIRECT_URL
1363None
1364MANAGERS
1365[]
1366MEDIA_ROOT
1367'/opt/cs_api/root_media'
1368MEDIA_URL
1369'/media/'
1370MESSAGE_STORAGE
1371'django.contrib.messages.storage.fallback.FallbackStorage'
1372MIDDLEWARE
1373['django.middleware.security.SecurityMiddleware',
1374 'corsheaders.middleware.CorsMiddleware',
1375 'django.contrib.sessions.middleware.SessionMiddleware',
1376 'django.middleware.common.CommonMiddleware',
1377 'django.middleware.csrf.CsrfViewMiddleware',
1378 'django.contrib.auth.middleware.AuthenticationMiddleware',
1379 'django.contrib.messages.middleware.MessageMiddleware',
1380 'django.middleware.clickjacking.XFrameOptionsMiddleware',
1381 'djadmin.middleware.DJMiddleware']
1382MIDTRANS_PAYMENT_URL
1383'https://app.sandbox.midtrans.com/snap/v1/transactions'
1384MIDTRANS_SERVER_KEY
1385'********************'
1386MIGRATION_MODULES
1387{}
1388MONTH_DAY_FORMAT
1389'F j'
1390NUMBER_GROUPING
13910
1392PASSWORD_HASHERS
1393'********************'
1394PASSWORD_RESET_TIMEOUT_DAYS
1395'********************'
1396PREPEND_WWW
1397False
1398REST_FRAMEWORK
1399{'DATETIME_FORMAT': '%Y-%m-%d %H:%M:%S',
1400 'DEFAULT_AUTHENTICATION_CLASSES': ('rest_framework_jwt.authentication.JSONWebTokenAuthentication',),
1401 'DEFAULT_FILTER_BACKENDS': ('django_filters.rest_framework.DjangoFilterBackend',
1402 'rest_framework.filters.SearchFilter'),
1403 'DEFAULT_PAGINATION_CLASS': 'rest_framework.pagination.PageNumberPagination',
1404 'DEFAULT_PERMISSION_CLASSES': ('rest_framework.permissions.IsAuthenticated',),
1405 'DEFAULT_VERSIONING_CLASS': 'rest_framework.versioning.URLPathVersioning',
1406 'PAGE_SIZE': 10,
1407 'TEST_REQUEST_DEFAULT_FORMAT': 'json'}
1408ROOT_URLCONF
1409'career_support_api.urls'
1410SCHOOL_PORTAL_URL
1411'http://45.118.134.76:9080'
1412SECRET_KEY
1413'********************'
1414SECURE_BROWSER_XSS_FILTER
1415False
1416SECURE_CONTENT_TYPE_NOSNIFF
1417False
1418SECURE_HSTS_INCLUDE_SUBDOMAINS
1419False
1420SECURE_HSTS_PRELOAD
1421False
1422SECURE_HSTS_SECONDS
14230
1424SECURE_PROXY_SSL_HEADER
1425None
1426SECURE_REDIRECT_EXEMPT
1427[]
1428SECURE_SSL_HOST
1429None
1430SECURE_SSL_REDIRECT
1431False
1432SERVER_EMAIL
1433'root@localhost'
1434SESSION_CACHE_ALIAS
1435'default'
1436SESSION_COOKIE_AGE
14371209600
1438SESSION_COOKIE_DOMAIN
1439None
1440SESSION_COOKIE_HTTPONLY
1441True
1442SESSION_COOKIE_NAME
1443'sessionid'
1444SESSION_COOKIE_PATH
1445'/'
1446SESSION_COOKIE_SAMESITE
1447'Lax'
1448SESSION_COOKIE_SECURE
1449False
1450SESSION_ENGINE
1451'django.contrib.sessions.backends.db'
1452SESSION_EXPIRE_AT_BROWSER_CLOSE
1453False
1454SESSION_FILE_PATH
1455None
1456SESSION_SAVE_EVERY_REQUEST
1457False
1458SESSION_SERIALIZER
1459'django.contrib.sessions.serializers.JSONSerializer'
1460SETTINGS_MODULE
1461'career_support_api.settings'
1462SHORT_DATETIME_FORMAT
1463'm/d/Y P'
1464SHORT_DATE_FORMAT
1465'm/d/Y'
1466SIGNING_BACKEND
1467'django.core.signing.TimestampSigner'
1468SILENCED_SYSTEM_CHECKS
1469[]
1470SITE_ID
14711
1472SITE_PREFIX
1473'http://45.118.134.76:9880'
1474SOCIALACCOUNT_PROVIDERS
1475{'linkedin': {'PROFILE_FIELDS': ['id',
1476 'first-name',
1477 'last-name',
1478 'email-address',
1479 'picture-url',
1480 'public-profile-url'],
1481 'SCOPE': ['r_basicprofile', 'r_emailaddress']}}
1482STATICFILES_DIRS
1483('/opt/cs_api/static',)
1484STATICFILES_FINDERS
1485['django.contrib.staticfiles.finders.FileSystemFinder',
1486 'django.contrib.staticfiles.finders.AppDirectoriesFinder']
1487STATICFILES_STORAGE
1488'django.contrib.staticfiles.storage.StaticFilesStorage'
1489STATIC_ROOT
1490'/opt/cs_api/root_static'
1491STATIC_URL
1492'/static/'
1493SWAGGER_SETTINGS
1494{'SECURITY_DEFINITIONS': {'JWT': {'in': 'header',
1495 'name': 'Authorization',
1496 'type': 'apiKey'}},
1497 'USE_SESSION_AUTH': False}
1498TEMPLATES
1499[{'APP_DIRS': True,
1500 'BACKEND': 'django.template.backends.django.DjangoTemplates',
1501 'DIRS': ['/opt/cs_api/templates'],
1502 'OPTIONS': {'context_processors': ['django.template.context_processors.debug',
1503 'django.template.context_processors.request',
1504 'django.contrib.auth.context_processors.auth',
1505 'django.contrib.messages.context_processors.messages']}}]
1506TEST_NON_SERIALIZED_APPS
1507[]
1508TEST_RUNNER
1509'django.test.runner.DiscoverRunner'
1510THOUSAND_SEPARATOR
1511','
1512THUMBNAIL_FORCE_OVERWRITE
1513True
1514TIME_FORMAT
1515'P'
1516TIME_INPUT_FORMATS
1517['%H:%M:%S', '%H:%M:%S.%f', '%H:%M']
1518TIME_ZONE
1519'Asia/Jakarta'
1520URLBASE
1521'karir.work'
1522USE_I18N
1523True
1524USE_L10N
1525True
1526USE_THOUSAND_SEPARATOR
1527False
1528USE_TZ
1529True
1530USE_X_FORWARDED_HOST
1531False
1532USE_X_FORWARDED_PORT
1533False
1534WSGI_APPLICATION
1535'career_support_api.wsgi.application'
1536X_FRAME_OPTIONS
1537'SAMEORIGIN'
1538YEAR_MONTH_FORMAT
1539'F Y'
1540You're seeing this error because you have DEBUG = True in your Django settings file. Change that to False, and Django will display a standard page generated by the handler for this status code.