Dear list,
I follow
http://www.tangowithdjango.com/book/chapters/templates_static.html
The book instructs me to insert a SETTINGS_DIR and PROJECT_PATH
variables in my project settings.py.
However, the automatically created settings.py already contains a line
BASE_DIR = os.path.dirname(os.path.dirname(__file__))
that looks very similar to the next three lines I added.
Am I reproducing code here? Do I make a mistake if I take the BASE_DIR~
line out?
Thanks for your guidance!
David
settings.py (slection):
# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
import os
BASE_DIR = os.path.dirname(os.path.dirname(__file__))
SETTINGS_DIR = os.path.dirname(__file__)
PROJECT_PATH = os.path.join(SETTINGS_DIR, os.pardir)
PROJECT_PATH = os.path.abspath(PROJECT_PATH)