Re: Stuck re:Practical Django Projects 2nd E...

2009-07-19 Thread klaut
On Jul 18, 9:57 pm, Rob B wrote: > Huge thanks Tanja - worked a treat. > > Any ideas why the book has it the other way around? > I think it is just a typo :) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django

Re: Stuck re:Practical Django Projects 2nd E...

2009-07-18 Thread Rob B
Huge thanks Tanja - worked a treat. Any ideas why the book has it the other way around? 2009/7/18 klaut > > > > On Jul 18, 6:30 pm, "Rob B (uk)" wrote: > > Bit stumped on chapter 4. > > > > Every thing is working except I'm getting a 'Page not found (404)' > > when I try to view any entries. >

Re: Stuck re:Practical Django Projects 2nd E...

2009-07-18 Thread klaut
On Jul 18, 6:30 pm, "Rob B (uk)" wrote: > Bit stumped on chapter 4. > > Every thing is working except I'm getting a 'Page not found (404)' > when I try to view any entries. > > View: > def entry_detail(request, year, month, day, slug): >         import datetime, time >         date_stamp = time

Re: Stuck re:Practical Django Projects 2nd E...

2009-07-18 Thread Lakshman Prasad
If you get a page not found, verify the slug (the entire url pattern for that pattern), either from the console or admin, that it exists. On Sat, Jul 18, 2009 at 4:30 PM, Rob B (uk) wrote: > > Bit stumped on chapter 4. > > Every thing is working except I'm getting a 'Page not found (404)' > when

Stuck re:Practical Django Projects 2nd E...

2009-07-18 Thread Rob B (uk)
Bit stumped on chapter 4. Every thing is working except I'm getting a 'Page not found (404)' when I try to view any entries. View: def entry_detail(request, year, month, day, slug): import datetime, time date_stamp = time.strptime(year+month+day, "%Y%b%d") pub_date = date