Camino and Safari do not open feeds

2006-07-13 Thread bayerj

Hi group,

I implemented a feed as described in
http://www.djangoproject.com/documentation/syndication/.

The source can be found here: http://paste.e-scribe.com/703/

The url configuration is:

(
r'^feeds/(?P.*)/$',
'django.contrib.syndication.views.feed',
{
'feed_dict': { "latest" : LatestEntries}
}
),

If I point Safari to the url, I get a "Don't understand content" error.
Camino just saves the file to the download folder. The structure and
everything of the file ( := the feed) is as intended. But I want Safari
and Camino and all the other browsers to recognize the feed as a feed.

Anyone has had similar experiences?

Regards,
-Justin


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users
-~--~~~~--~~--~--~---



Re: Camino and Safari do not open feeds

2006-07-13 Thread David Reynolds


On 13 Jul 2006, at 2:37 pm, bayerj wrote:

>
> Hi group,
>
> I implemented a feed as described in
> http://www.djangoproject.com/documentation/syndication/.
>
> The source can be found here: http://paste.e-scribe.com/703/
>
> The url configuration is:
>
> (
> r'^feeds/(?P.*)/$',
> 'django.contrib.syndication.views.feed',
> {
> 'feed_dict': { "latest" : LatestEntries}
> }
> ),
>
> If I point Safari to the url, I get a "Don't understand content"  
> error.
> Camino just saves the file to the download folder. The structure and
> everything of the file ( := the feed) is as intended. But I want  
> Safari
> and Camino and all the other browsers to recognize the feed as a feed.
>
> Anyone has had similar experiences?

Hi. Are you running the development server?

I've found these don't tend to work in the development server in  
Safari, but you when you make sure app live at a 'proper' url they  
will work.

Cheers,

David

-- 
David Reynolds
[EMAIL PROTECTED]



--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users
-~--~~~~--~~--~--~---



Re: Camino and Safari do not open feeds

2006-07-13 Thread Adrian Holovaty

On 7/13/06, bayerj <[EMAIL PROTECTED]> wrote:
> If I point Safari to the url, I get a "Don't understand content" error.
> Camino just saves the file to the download folder. The structure and
> everything of the file ( := the feed) is as intended. But I want Safari
> and Camino and all the other browsers to recognize the feed as a feed.

Hi Justin,

I believe this is happening because Django uses the
"application/atom+xml" MIME type for Atom feeds, and your browsers
don't appear to be able to handle that MIME type. In the grand scheme
of things, this is no problem, but if you really want to be able to
see the raw source of your feed, change your browser settings to use a
particular program to handle that MIME type.

Adrian

-- 
Adrian Holovaty
holovaty.com | djangoproject.com

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users
-~--~~~~--~~--~--~---