Closed oussama-he closed 4 years ago
I have a question about the TEMPLATES config in this project. It looks like this"
TEMPLATES = [ { 'BACKEND': 'django.template.backends.django.DjangoTemplates', # Add dist to 'DIRS': ['dist'], 'APP_DIRS': True, 'OPTIONS': { 'context_processors': [ 'django.template.context_processors.debug', 'django.template.context_processors.request', 'django.contrib.auth.context_processors.auth', 'django.contrib.messages.context_processors.messages', ], }, }, ]
As we see 'DIRS' has a list that looks like this ['dist']. I want to know how the Django finds this directory which is outside of the Django project directory?
'DIRS'
['dist']
Paths are relative to current working direvtory (manage.py) and that's where dist would be
I have a question about the TEMPLATES config in this project. It looks like this"
As we see
'DIRS'
has a list that looks like this['dist']
. I want to know how the Django finds this directory which is outside of the Django project directory?