Electronics & Programming

develissimo

Open Source electronics development and programming

  • You are not logged in.
  • Root
  • » Django
  • » Displaying a variable in my base template [RSS Feed]

#1 March 26, 2008 03:56:24

Brandon T.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

Displaying a variable in my base template


Hello everyone,

Still fairly new to Django, but I'm loving it!

I have a base html template that I would like to display the current
year in. Where should I put the action that retrieves the current year
if I would like the value to appear on every page?

Thank you,
Brandon
--~--~---------~--~----~------------~-------~--~----~
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 this group, send email to
For more options, visit this group athttp://groups.google.com/group/django-users?hl=en-~----------~----~----~----~------~----~------~--~---

Offline

#2 March 26, 2008 04:24:56

[EMAIL P.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

Displaying a variable in my base template


If it is going to be in every page I would just use the now
tag(http://www.djangoproject.com/documentation/templates/#now) in
the base.html

On Mar 25, 9:56 pm, Brandon Taylor <> wrote:
> Hello everyone,
>
> Still fairly new to Django, but I'm loving it!
>
> I have a base html template that I would like to display the current
> year in. Where should I put the action that retrieves the current year
> if I would like the value to appear on every page?
>
> Thank you,
> Brandon
--~--~---------~--~----~------------~-------~--~----~
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 this group, send email to
For more options, visit this group athttp://groups.google.com/group/django-users?hl=en-~----------~----~----~----~------~----~------~--~---

Offline

#3 March 26, 2008 12:46:10

Brandon T.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

Displaying a variable in my base template


Thanks!

On Mar 25, 10:24 pm, "" <>
wrote:
> If it is going to be in every page I would just use the now
> tag(http://www.djangoproject.com/documentation/templates/#now) in
> the base.html
>
> On Mar 25, 9:56 pm, Brandon Taylor <> wrote:
>
> > Hello everyone,
>
> > Still fairly new to Django, but I'm loving it!
>
> > I have a base html template that I would like to display the current
> > year in. Where should I put the action that retrieves the current year
> > if I would like the value to appear on every page?
>
> > Thank you,
> > Brandon
--~--~---------~--~----~------------~-------~--~----~
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 this group, send email to
For more options, visit this group athttp://groups.google.com/group/django-users?hl=en-~----------~----~----~----~------~----~------~--~---

Offline

  • Root
  • » Django
  • » Displaying a variable in my base template [RSS Feed]

Board footer

Moderator control

Enjoy the 11th of December
PoweredBy

The Forums are managed by develissimo stuff members, if you find any issues or misplaced content please help us to fix it. Thank you! Tell us via Contact Options
Leave a Message
Welcome to Develissimo Live Support