Templates9:51 with Kenneth Love
Views that return plain text are fine, but eventually we're going to want some fancy HTML.
App-specific templates are best kept in a structure like
app_name/templates/app_name because Django looks in app directories for a directory named
templates and makes those templates automatically available.
}} are used to mark a variable you want printed out.
%} mark template tags, or special bits of Python that Django's template engine knows how to run. Unlike Jinja2 templates, you can't just run arbitrary Python in a template.
render() turns a request object, a template, and an optional context dictionary into a generated string. More about
You need to sign up for Treehouse in order to download course files.Sign up