Re: url views problem

2008-07-02 Thread sebey
wonderful!! its works thank you!!! On Jul 1, 3:27 pm, sebey <[EMAIL PROTECTED]> wrote: > cool sorry i will try that out sorry for replying so late but I will > post what the results are > > thanks again > > On Jun 26, 9:23 pm, "Emil Styrke" <[EMAIL PROTECTED]> wrote: > > > This line: > > >    

Re: url views problem

2008-07-01 Thread sebey
cool sorry i will try that out sorry for replying so late but I will post what the results are thanks again On Jun 26, 9:23 pm, "Emil Styrke" <[EMAIL PROTECTED]> wrote: > This line: > >    query = show.objects.filter(show_feed__contains="http://;) > > selects all shows that have a feed url(?)

Re: url views problem

2008-06-26 Thread Emil Styrke
This line: query = show.objects.filter(show_feed__contains="http://;) selects all shows that have a feed url(?) containing "http://;. The for loop then loops through these items and passes each one to feedparser. If you want to view only one show you have to change this to use the show ID

Re: url views problem

2008-06-25 Thread sebey
sorry but I do not want to limit the results as I am useing a parser in the views.py but I want to get all of the urls and the first url show/1, the second url I want to give shows/2 and so on and so on On Jun 25, 1:48 pm, Jeff FW <[EMAIL PROTECTED]> wrote: > You've now passed in the variable

Re: url views problem

2008-06-25 Thread Jeff FW
You've now passed in the variable (which you can check by throwing a "print show_feed" at the top of the function), but now you actually need to *do* something with it. I'm assuming (not really knowing what you want out of this) that you'd want to add an order_by clause to order your podcasts

Re: url views problem

2008-06-25 Thread sebey
yes i have that set up it now looks like this def show_page(request,show_feed): """this is where we take what we need form the rss feeds in the data base""" query = show.objects.filter(show_feed__contains="http://;) for s in query: podcast = feedparser.parse(s.show_feed)

Re: url views problem

2008-06-24 Thread phillc
you did not read http://www.djangoproject.com/documentation/url_dispatch/ your method, show_page, is now passed a parameter called show_feed. you need to use it accordingly On Jun 24, 10:02 am, sebey <[EMAIL PROTECTED]> wrote: > either way its still the same thanks though but it still is not >

Re: url views problem

2008-06-24 Thread sebey
either way its still the same thanks though but it still is not working On Jun 24, 1:44 pm, Jeff FW <[EMAIL PROTECTED]> wrote: > The regex you're using has a trailing /, so you need to have that in > your link as well: > /shows/1/ > > The other option is to make the trailing slash optional like

Re: url views problem

2008-06-24 Thread Jeff FW
The regex you're using has a trailing /, so you need to have that in your link as well: /shows/1/ The other option is to make the trailing slash optional like so: r'^shows/(?P\d{1})[/]?$' On Jun 24, 7:09 am, sebey <[EMAIL PROTECTED]> wrote: > it works but  (thanks for the tips) it still is

Re: url views problem

2008-06-24 Thread sebey
it works but (thanks for the tips) it still is getting the same feed for local/shows/1/ and local/show/2 help please everyone who has helped so far thank you On Jun 24, 12:06 pm, sebey <[EMAIL PROTECTED]> wrote: > ok fixed that yeah i saw that after I posted but here is what it looks > like

Re: url views problem

2008-06-24 Thread sebey
ok fixed that yeah i saw that after I posted but here is what it looks like now from django.conf.urls.defaults import * urlpatterns = patterns('', # Example: # (r'^ubermicro/', include('ubermicro.foo.urls')), # Uncomment this for admin: (r'^admin/',

Re: url views problem

2008-06-24 Thread Emil Styrke
2008/6/24 sebey <[EMAIL PROTECTED]>: >#temp only fo dev proposes > (r'^shows/(?p\d{1})/ > s','ubermicro.shows.views.show_page') # .* does not work > ) > > can anyone help? You need to use a capital letter P: r'^shows/(?P\d{1})/' /Emil

Re: url views problem

2008-06-24 Thread Tye
Why does the /shows/ etc url string end with /s' ? Typo? Sent from my iPhone On Jun 24, 2008, at 3:23, sebey <[EMAIL PROTECTED]> wrote: > > I have gotten this traceback > > Traceback (most recent call last): > File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/ >

Re: url views problem

2008-06-24 Thread sebey
I have gotten this traceback Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/ site-packages/django/core/handlers/base.py" in get_response 68. callback, callback_args, callback_kwargs = resolver.resolve(request.path) File

Re: url views problem

2008-06-24 Thread sebey
cool thats great thanks anymore suggestions would be great thanks On Jun 23, 7:48 pm, phillc <[EMAIL PROTECTED]> wrote: > http://www.djangoproject.com/documentation/url_dispatch/ > > look at the regular expressions used in the examples, and the section > "named groups" > > On Jun 23, 9:22 am,

Re: url views problem

2008-06-23 Thread phillc
http://www.djangoproject.com/documentation/url_dispatch/ look at the regular expressions used in the examples, and the section "named groups" On Jun 23, 9:22 am, sebastian stephenson <[EMAIL PROTECTED]> wrote: > ok so I have in my data base a colium of rss feeds and I am parseing   > them via

url views problem

2008-06-23 Thread sebastian stephenson
ok so I have in my data base a colium of rss feeds and I am parseing them via feedparser and I am having a touble getting one feed to have like "local/show/1" and another feed have "local/show/2" but how do you do this here is the urls.py in its current state: from