context A dict to be used as the template’s context for rendering. Names, Django uses select_template() instead of template_name The name of the template to load and render. Render_to_string() loads a template like get_template() andĬalls its render() method immediately. render_to_string( template_name, context = None, request = None, using = None) ¶ Templates, Django provides a shortcut function which automates the process. In addition, to cut down on the repetitive nature of loading and rendering
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |