You shouldn't be capturing the args yourself -- the syndication
framework will automatically split up anything after the feed name and
pass it to get_object on your Feed class. So, if "/feeds/latest/foo/
bar/" was requested, it would call your feed class with the bits
['foo', 'bar']. You can then use get_objects() to return a custom
object based off of those parameters.

For more information check out:
http://www.djangoproject.com/documentation/syndication_feeds/#a-complex-example

It has an example and an in depth explanation.

On Jul 25, 9:19 pm, Mackenzie <[EMAIL PROTECTED]> wrote:
> I am wondering how you can use args captured from your urls.py in a
> feed class
>
> example
>
> urls.py
> (r'^feeds/(?P<url>.*)/(?P<myarg>.*)/$',
> 'django.contrib.syndication.views.feed',{'feed_dict': feeds}),
>
> I then want to use myarg in my subclass of Feeds to do filtering on
> the objects for the feed.
>
> Thanks
>
> Mackenzie


--~--~---------~--~----~------------~-------~--~----~
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?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to