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
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
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
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
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
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
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
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
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
9 matches
Mail list logo