template.Context.get()
  • References/Python/Django/API/Templates/The Django template language: for Python programmers

Context.get(key, otherwise=None) Returns the value for key if key is in the context, else returns

2025-01-10 15:47:30
template.Context.push()
  • References/Python/Django/API/Templates/The Django template language: for Python programmers

Context.push()

2025-01-10 15:47:30
template.loaders.base.Loader.get_template()
  • References/Python/Django/API/Templates/The Django template language: for Python programmers

get_template(template_name, skip=None) [source] Returns a Template object for

2025-01-10 15:47:30
template.context_processors.static()
  • References/Python/Django/API/Templates/The Django template language: for Python programmers

static() [source] If this processor is enabled, every RequestContext will contain

2025-01-10 15:47:30
template.Context.flatten()
  • References/Python/Django/API/Templates/The Django template language: for Python programmers

Context.flatten() Using flatten() method you can get whole Context stack as one dictionary including

2025-01-10 15:47:30
template.context_processors.tz()
  • References/Python/Django/API/Templates/The Django template language: for Python programmers

tz() [source] If this processor is enabled, every RequestContext will contain

2025-01-10 15:47:30
template.loaders.base.Loader.get_template_sources()
  • References/Python/Django/API/Templates/The Django template language: for Python programmers

get_template_sources(template_name) [source] A method that takes a template_name

2025-01-10 15:47:30
template.Context
  • References/Python/Django/API/Templates/The Django template language: for Python programmers

class Context(dict_=None) [source] This class lives at django.template.Context

2025-01-10 15:47:30
template.Engine.select_template()
  • References/Python/Django/API/Templates/The Django template language: for Python programmers

Engine.select_template(self, template_name_list) [source] Like get_template()

2025-01-10 15:47:30
template.loaders.eggs.Loader
  • References/Python/Django/API/Templates/The Django template language: for Python programmers

class eggs.Loader Deprecated since version 1.9: Distributing applications

2025-01-10 15:47:30