Sunday, March 1, 2015

Chapter 5 - Templates

Hit a roadblock today where I accidentally moved all the files to the wrong folder, so I had to start chapter 4 over from scratch.

The instructions say: In your Django project’s directory (e.g. <workspace>/tango_with_django_project/), create a new directory called templates.

<workspace> is referring to code/tango_with_django_project

(NOT code/tango_with_django_project/tango_with_django_project).

So the structure of your project should look like this:



Lesson learned. Add as many print statements to settings.py as needed.
I added print "base directory is  " + BASE_DIR to mine, so that I could spot "base directory is" quickly among all the mumbo jumbo in the command line.

No comments:

Post a Comment