tango_with_django_17 icon indicating copy to clipboard operation
tango_with_django_17 copied to clipboard

Why is TEMPLATE_DIRS a list while other directories are dictionaries?

Open davneet4u opened this issue 10 years ago • 1 comments

You have written TEMPLATE_DIRS=[TEMPLATE_PATH]

but STATIC_DIRS = (STATIC_PATH,)

Why is TEMPLATE_DIRS a list?

davneet4u avatar Jan 05 '15 14:01 davneet4u

STATIC_DIRS = (STATIC_PATH,) is defining a tuple while TEMPLATE_DIRS = [TEMPLATE_PATH] is defining a list.

Here is another link explaining the two.

Here is a link explaining the differences between dicts, lists, and tuples. Best explanation I've seen so far on what the differences are.

FroggyRiseman avatar Jun 11 '15 17:06 FroggyRiseman