Re: URLPattern - can't fetch a detail page

2007-05-21 Thread Panos Laganakos
Right on the money Martin! Thanks alot. I knew it was something *stupid* I had done, but after looking at the project for so long, you lose your clarity for details :/ On May 21, 8:30 pm, "Martin Glueck" <[EMAIL PROTECTED]> wrote: > Looking at the urls pattern reported in the 404 page it looks

Re: URLPattern - can't fetch a detail page

2007-05-21 Thread Martin Glueck
Looking at the urls pattern reported in the 404 page it looks like there is twice the "^" symbol. And I would say that is the problem because this symbol tries to match the "start of a line", so the pattern "^news/ ^/(?P[a-zA-Z0-9-_]+)/?$" will never match to "/news/hello/". my guess is that you

Re: URLPattern - can't fetch a detail page

2007-05-21 Thread Panos Laganakos
Hehe, this is getting old, but still things don't work. There's no special stack trace here, I only get returned a 404 page result for the list_detail page. here's the full urls.py: from django.conf.urls.defaults import * from myproj.news.models import Entry news_list_info = {

Re: URLPattern - can't fetch a detail page

2007-05-19 Thread Tyson Tate
Can you post a stack trace and more details from your url.py file? -Tyson On May 18, 2007, at 1:05 PM, Panos Laganakos wrote: > Thanks for the reply mate, but that doesn't seem to be the issue. I > still can't figure out what's going wrong here :/

Re: URLPattern - can't fetch a detail page

2007-05-18 Thread Panos Laganakos
Thanks for the reply mate, but that doesn't seem to be the issue. I still can't figure out what's going wrong here :/ On May 18, 10:18 pm, Tyson Tate <[EMAIL PROTECTED]> wrote: > Your slug_field should be set to 'slug' because that's what you've > named it in your RegEx: > > '^/(?P[-\w]+)/?$'

Re: URLPattern - can't fetch a detail page

2007-05-18 Thread Tyson Tate
Your slug_field should be set to 'slug' because that's what you've named it in your RegEx: '^/(?P[-\w]+)/?$' So you want: (r'^/(?P[-\w]+)/?$', 'object_detail', dict(news_list_info, slug_field='slug')), or, conversely: (r'^/(?P[-\w]+)/?$', 'object_detail', dict (news_list_info,

URLPattern - can't fetch a detail page

2007-05-18 Thread Panos Laganakos
I've set up the url pattern as: (r'^/(?P[-\w]+)/?$', 'object_detail', dict(news_list_info, slug_field='news_entry')), The news_list_info: news_list_info = { 'queryset': Entry.objects.all(), 'allow_empty': True, } and both list and detail templates are in: