Boston Python Workshop/Saturday/Web app project: Difference between revisions

imported>Paulproteus
imported>Paulproteus
Line 530:
mkdir -p polls/templates/polls
 
Within that, create a file called index.html.
Then create a file in there called ''index.html''. Within that, create a file called index.html. Note that our loader.get_template('polls/index.html') code from above maps to "[template_directory]/polls/index.html" on the filesystem.
 
Put the following code in that template:
Anonymous user