Skip to content
This repository has been archived by the owner on Mar 7, 2022. It is now read-only.

티켓 종류가 없을 경우 오류 페이지로 안내 #87

Open
iz4blue opened this issue Jul 1, 2018 · 0 comments
Open

티켓 종류가 없을 경우 오류 페이지로 안내 #87

iz4blue opened this issue Jul 1, 2018 · 0 comments

Comments

@iz4blue
Copy link
Contributor

iz4blue commented Jul 1, 2018

잘못된 요청은 간단히 에러 페이지를 만들어 티켓이 없다고 알려주면 더 좋을 것 같습니다.
우선은 에러 메시지 부터 리포팅 합니다.

줄바꿈 처리는 잘못 캡춰를 했네요. 넓은 이해심으로 수동으로 파악 부탁드립니다. +_+a

Internal Server Error: /2018/registration/payment/0/
Traceback (most recent call last):
  File "--python-evn-path--/site-packages/django/core/handlers/exception.py", line 4
1, in inner
    response = get_response(request)
  File "--python-evn-path--/site-packages/django/core/handlers/base.py", line 249, i
n _legacy_get_response
    response = self._get_response(request)
  File "--python-evn-path--/site-packages/django/core/handlers/base.py", line 187, i
n _get_response
    response = self.process_exception_by_middleware(e, request)
  File "--python-evn-path--/site-packages/django/core/handlers/base.py", line 185, i
n _get_response
    response = wrapped_callback(request, *callback_args, **callback_kwargs)
  File "--python-evn-path--/site-packages/django/contrib/auth/decorators.py", line 2
3, in _wrapped_view
    return view_func(request, *args, **kwargs)
  File "/home/pyconkr/www.pycon.kr/pyconkr-2018/registration/views.py", line 61, in payment
    product = Option.objects.get(id=option_id)
  File "--python-evn-path--/site-packages/django/db/models/manager.py", line 85, in
manager_method
    return getattr(self.get_queryset(), name)(*args, **kwargs)
  File "--python-evn-path--/site-packages/django/db/models/query.py", line 380, in g
et
    self.model._meta.object_name
registration.models.DoesNotExist: Option matching query does not exist.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant