Thanks to all, I wrote custom tags. It's solve my problem!
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from
i was going to say state a question, but found my answer...
for anyone else:
http://www.djangoproject.com/documentation/db-api/#querysets-are-lazy
On Jul 2, 10:09 am, "Norman Harman" <[EMAIL PROTECTED]> wrote:
> Alex Koshelev wrote:
> > Or may be a custom template tag for common stuff.
>
> Or
Alex Koshelev wrote:
> Or may be a custom template tag for common stuff.
Or like any code anywhere just extract the common parts to a helper
function and call that.
--
Norman J. Harman Jr.
Senior Web Specialist, Austin American-Statesman
Or may be a custom template tag for common stuff.
On Jul 2, 5:59 pm, Alex Koshelev <[EMAIL PROTECTED]> wrote:
> Brrr... Try to use context
> processorshttp://www.djangoproject.com/documentation/templates_python/#subclass...
>
> On Jul 2, 5:43 pm, Mario <[EMAIL PROTECTED]> wrote:
>
> > I
Brrr... Try to use context processors
http://www.djangoproject.com/documentation/templates_python/#subclassing-context-requestcontext
On Jul 2, 5:43 pm, Mario <[EMAIL PROTECTED]> wrote:
> I understand. Global context = {} was bad solution...
> views,py:
> context = {
> 'hot_news':
I understand. Global context = {} was bad solution...
views,py:
context = {
'hot_news': News.objects.filter(hot=True).order_by('-created')[0],
'last_radio_message': VisualRadio.objects.all().order_by('-
created')[0],
'last_totals': Totals.objects.all().order_by('-created')[0],
Of course. But author don't write where he create context in some view
function or in module scope.
On Jul 2, 4:42 pm, "James Bennett" <[EMAIL PROTECTED]> wrote:
> On Wed, Jul 2, 2008 at 7:09 AM, Alex Koshelev <[EMAIL PROTECTED]> wrote:
> > Client-side caching. Use the `never_cache` decorator
>
On Wed, Jul 2, 2008 at 7:09 AM, Alex Koshelev <[EMAIL PROTECTED]> wrote:
> Client-side caching. Use the `never_cache` decorator
No, that's not it at all.
> On Jul 2, 3:43 pm, Mario <[EMAIL PROTECTED]> wrote:
>> I look at sql log - django didn't query that, but always query lists,
>> for
Client-side caching. Use the `never_cache` decorator
On Jul 2, 3:43 pm, Mario <[EMAIL PROTECTED]> wrote:
> Hi, all!
> I have a some little project that consists news list, several text
> blocks and else
> All worked... But after adding, for example news, it not publish on
> main page while
Hi, all!
I have a some little project that consists news list, several text
blocks and else
All worked... But after adding, for example news, it not publish on
main page while apache restart(reload). This problem haven't
regularity.
model.py:
class News(models.Model):
title =
10 matches
Mail list logo