On Tue, Mar 30, 2010 at 11:23 AM, grimmus wrote:
> Thanks for the replies.
>
> I am using generic date based views for the page, so i am passing
> other things through the extra_context :
>
> My code is here http://dpaste.com/hold/177740/
>
> Thanks for any more info.
>
>
Please read:
http://docs
Thanks for the replies.
I am using generic date based views for the page, so i am passing
other things through the extra_context :
My code is here http://dpaste.com/hold/177740/
Thanks for any more info.
On Mar 26, 4:06 pm, Karen Tracey wrote:
> On Fri, Mar 26, 2010 at 9:32 AM, grimmus wrote:
On Fri, Mar 26, 2010 at 9:32 AM, grimmus wrote:
> In the view:
>
> diary = Entry.objects.filter(status=1).order_by('-pub_date')[:5]
>
> t = loader.get_template('cms/page.html')
> c = RequestContext(request,{
> 'diary':diary,
> })
> return HttpResponse(t.render(c))
>
Is that diary = line real
In the view:
diary = Entry.objects.filter(status=1).order_by('-pub_date')[:5]
t = loader.get_template('cms/page.html')
c = RequestContext(request,{
'diary':diary,
})
return HttpResponse(t.render(c))
And the template
{% for entry in diary %}
On Mar 26, 11:25 am, grimmus wrote:
> Hi,
>
> I have a website with 5 pages and a blog.
>
> At the bottom of every page is a list of recent blog posts.
>
> When i delete some blog posts they still appear in the recent posts
> list.
>
> I am not using any caching.
>
> If i restart the local dev ser
Hi,
I have a website with 5 pages and a blog.
At the bottom of every page is a list of recent blog posts.
When i delete some blog posts they still appear in the recent posts
list.
I am not using any caching.
If i restart the local dev server then they disappear.
Could anyone tell me why this
6 matches
Mail list logo