You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to django-rest-framework
Hi,
When I try to view our API in the browser, there is a failed lookup of
the favicon resource. This doesn't happen using cURL, so it seems to
be related to rendering the template (or a browser issue).
Does the browser automatically look for a favicon if none is present
in the markup?
I looked through the restframework project and I couldn't find
references to favicon.ico in the template. I did find a view and url
pattern relating to favicon.
Any thoughts?
Best,
Ben
Tom Christie
unread,
Sep 22, 2011, 11:12:43 AM9/22/11
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to django-res...@googlegroups.com
Hey Ben,
Yup browsers will make those favicon requests regardless.
It's only turned on if you're not in DEBUG mode, because unless you properly handle making sure they don't get cached by the browser, it'll end up being your icon pretty much all the time when your working from '127.0.0.1:8000', which is kinda annoying.
I probably ought to just ditch the favicon anyway, it's a bit out-of-scope really.
benp
unread,
Sep 22, 2011, 12:01:24 PM9/22/11
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to django-rest-framework
Hey Tom,
Thanks for the quick reply. I've gone ahead and added a favicon to
the renderer template to make things work.
We wanted branding consistency on the site anyway.
Cheers,
Ben
On Sep 22, 11:12 am, Tom Christie <christie....@gmail.com> wrote:
> Hey Ben,
>
> Yup browsers will make those favicon requests regardless.
>