Re: Strange difference between runserver and shell

2010-03-11 Thread GJCGJC
#x27;t know enough yet to tell whether this is the same problem as the OP is having - if not please let me know and I'll re-post as a new topic. Kind regards GJCGJC On 11 Mar, 22:00, Andy McKay wrote: > > Does anybody have any clue what the problem might be? Thanks for your help! &

Re: Prefixing an argument to date-based generic views

2010-03-08 Thread GJCGJC
Okay, here's where I've got so far. My problem with this is that, as will be immediately apparent, There's an awful lot being repeated here: from django.conf.urls.defaults import * from newssite.models import Entry, Category def story_archive(request, cat): # Look up the category (and raise

Prefixing an argument to date-based generic views

2010-03-07 Thread GJCGJC
I'm trying to use date-based generic views for each category on my site so, for example, the news category will have date-based archive at news/2010/jan/02/slug and features would have features/2010/ … and so on. I also want site admins to be able to rename categories at will, so I don't want the

Using two slugs to call a detail view? [newbie]

2010-01-27 Thread GJCGJC
Hi, I'm trying to put a site together for a local charity. I'd like them to be able to add new pages to the primary and secondary navigation from the admin site and, importantly, I want them to be able to specify what secondary pages belong to which primary pages. I'm trying to do this with objec