Thank you
On Sun, May 19, 2024, 1:48 AM Hossein Mahdavipour
wrote:
> Hi.
> I am using DRF with django. In views I use get_object_or_404. When I get
> a 404, the exception detail is "No %s matches the given query."
> You can see the code here:
> https://github.com/django/django/blob/8f205acea94e
Hi.
I am using DRF with django. In views I use get_object_or_404. When I get a
404, the exception detail is "No %s matches the given query."
You can see the code here:
https://github.com/django/django/blob/8f205acea94e93a463109e08814f78c09307f2b9/django/shortcuts.py#L88
My question is why it doe
Yup, you are right. The thing was I started with the google app egine
first, then saw I could use the django framework.
I think I'll start again just with the Django framework, but anyway I
have not seen any solution to that problem...
On Oct 16, 6:30 am, Malcolm Tredinnick <[EMAIL PROTECTED]
On Wed, 2008-10-15 at 16:09 -0700, jseleuco wrote:
> Hi all,
>
> Just started today with the Python, Django and Google app engine and
> having some novice problems as well :)
I just noticed you said it's your first day with everything. So how
about cranking back the difficulty level a bit? Inst
On Wed, 2008-10-15 at 16:09 -0700, jseleuco wrote:
> Hi all,
>
> Just started today with the Python, Django and Google app engine and
> having some novice problems as well :)
>
>
> def detail(request, poll_id):
> p = get_object_or_404(Poll, pk=poll_id)
> return render_to_response('poll
you are doing it correctly for normal django.
its something to do with the Poll model that you are getting from
google app engine
sorry I can't help more than that.
-felix
jseleuco wrote:
> Hi all,
>
> Just started today with the Python, Django and Google app engine and
> having some novice pr
Hi all,
Just started today with the Python, Django and Google app engine and
having some novice problems as well :)
def detail(request, poll_id):
p = get_object_or_404(Poll, pk=poll_id)
return render_to_response('polls/detail.html', {'poll': p})
The get_object_or_404 method is crashin
7 matches
Mail list logo