Re: list index out or range,getting rss feed urls out of db

2008-05-29 Thread sebastian stephenson
great thats helpful thanks On 29 May 2008, at 10:29, Eric Abrahamsen wrote: > > Sure. Add instances of your Feed class in the admin. Then in your > standalone script, the one that runs under your regular django > environment, do this: > > from ubermicro.shows.models import Feed > > feeds = Feed.o

Re: list index out or range,getting rss feed urls out of db

2008-05-29 Thread Eric Abrahamsen
Sure. Add instances of your Feed class in the admin. Then in your standalone script, the one that runs under your regular django environment, do this: from ubermicro.shows.models import Feed feeds = Feed.objects.all() for feed in feeds: f = feedparser.parse(feed.link) for item in f

Re: list index out or range,getting rss feed urls out of db

2008-05-29 Thread sebastian stephenson
well umm. can I add urls though the admin interface? On 28 May 2008, at 19:42, Eric Abrahamsen wrote: > > What I was originally suggesting you do (which of course might not > turn out to be the best solution) is use feedparser to read feed urls, > and save those feeds into your database. That way

Re: list index out or range,getting rss feed urls out of db

2008-05-28 Thread Eric Abrahamsen
What I was originally suggesting you do (which of course might not turn out to be the best solution) is use feedparser to read feed urls, and save those feeds into your database. That way, you wouldn't be using feedparser at all in your views, just regular database queries. If your models i

Re: list index out or range,getting rss feed urls out of db

2008-05-28 Thread sebey
please much suggestions thank you On May 28, 4:37 pm, sebastian stephenson <[EMAIL PROTECTED]> wrote: > great finally some help thank you so much! > On 28 May 2008, at 15:20, Rajesh Dhawan wrote: > > > > > > > On May 28, 6:30 am, sebey <[EMAIL PROTECTED]> wrote: > >> from django.http import HttpR

Re: list index out or range,getting rss feed urls out of db

2008-05-28 Thread sebastian stephenson
great finally some help thank you so much! On 28 May 2008, at 15:20, Rajesh Dhawan wrote: > > > > On May 28, 6:30 am, sebey <[EMAIL PROTECTED]> wrote: >> from django.http import HttpResponse >> import feedparser >> from ubermicro.shows.models import show >> >> def show_page(request): >> """th

Re: list index out or range,getting rss feed urls out of db

2008-05-28 Thread Rajesh Dhawan
On May 28, 6:30 am, sebey <[EMAIL PROTECTED]> wrote: > from django.http import HttpResponse > import feedparser > from ubermicro.shows.models import show > > def show_page(request): >     """this is where we take what we need form the rss feeds in the > data base""" >     query = show.objects.fi

list index out or range,getting rss feed urls out of db

2008-05-28 Thread sebey
from django.http import HttpResponse import feedparser from ubermicro.shows.models import show def show_page(request): """this is where we take what we need form the rss feeds in the data base""" query = show.objects.filter(show_feed__contains="http://";) podcast = feedparser.parse(qu

list index out or range,getting rss feed urls out of db

2008-05-28 Thread sebey
from django.http import HttpResponse import feedparser from ubermicro.shows.models import show def show_page(request): """this is where we take what we need form the rss feeds in the data base""" query = show.objects.filter(show_feed__contains="http://";) podcast = feedparser.parse(qu