On Sep 3, 8:37 am, Alex Koshelev <[EMAIL PROTECTED]> wrote:
> Yes you can try to play with custom template tags or with context
> processorshttp://www.djangoproject.com/documentation/templates_python/#subclass...
OK, excellent.
Thanks for your help Alex, much appreciated.
--~--~-
Yes you can try to play with custom template tags or with context
processors
http://www.djangoproject.com/documentation/templates_python/#subclassing-context-requestcontext
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google G
C> I'm curious, is there a way to do this without regenerating all of
C> the code inside of the views.py file?
C> I've been reading about setting up templatetags, would this work for
C> what I want to do, and if so would it be better?
Regenerating?
The polls or latest_poll_list should some
On Sep 3, 1:10 am, Alex Koshelev <[EMAIL PROTECTED]> wrote:
> In list_events view you have to pass your polls list into context to.
>
> ...
> from mysite.polls.models import Poll
> ...
> def list_events(request):
> latest_event_list = Event.objects.all()
> latest_poll_list = Poll.objects
In list_events view you have to pass your polls list into context to.
...
from mysite.polls.models import Poll
...
def list_events(request):
latest_event_list = Event.objects.all()
latest_poll_list = Poll.objects.all().order_by('-pub_date')[:5]
return render_to_response('events/ind
On Sep 3, 1:00 am, Alex Koshelev <[EMAIL PROTECTED]> wrote:
> Please show your views code or tell what you pass into template
> context.
Sure thing, here's my views code for the events app.
from mysite.events.models import Event
from django.shortcuts import render_to_response, get_object_or_404
Please show your views code or tell what you pass into template
context.
--~--~-~--~~~---~--~~
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 un
7 matches
Mail list logo