django-developers is for the discussion of the development of Django
itself, not development with Django.
As such this mailing list is not appropriate for this message,
django-users would be more appropriate.

However you should take a look at template context processor[1]

[1]: http://docs.djangoproject.com/en/dev/ref/templates/api/#id1
-- Gert

Mobile: +32 498725202
Web: http://gert.selentic.net



On Fri, Apr 23, 2010 at 09:38, JohnHenry <qhlonl...@163.com> wrote:
> Hi, all
>    As I know, Django Templates got all variables through views
> function with Context dict; But I read some source, There is some
> variables like {{SITE_ROOT}} {{MEDIA_URL}} {{MEDIA_SERIAL}}
> {{request}}  {{ user }}  {{siteconfig}} ; Such variables seems globlly
> usable; But I can't find any Context Items about them in relative View
> function. Then How did those variables transimitted to Templates? And
> Can I add some global varible values like that which need no value
> from Context?
>
>
>
> Best Regards!
>
> --
> You received this message because you are subscribed to the Google Groups 
> "Django developers" group.
> To post to this group, send email to django-develop...@googlegroups.com.
> To unsubscribe from this group, send email to 
> django-developers+unsubscr...@googlegroups.com.
> For more options, visit this group at 
> http://groups.google.com/group/django-developers?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django developers" group.
To post to this group, send email to django-develop...@googlegroups.com.
To unsubscribe from this group, send email to 
django-developers+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-developers?hl=en.

Reply via email to