template.Context

class Context(dict_=None) [source]

This class lives at django.template.Context. The constructor takes two optional arguments:

  • A dictionary mapping variable names to variable values.
  • The name of the current application. This application name is used to help resolve namespaced URLs. If you’re not using namespaced URLs, you can ignore this argument.

For details, see Playing with Context objects below.

doc_Django
2016-10-09 18:39:44
Comments
Leave a Comment

Please login to continue.