mirror of
https://github.com/django/django.git
synced 2025-08-04 10:59:45 +00:00
Fixed #29983 -- Replaced os.path() with pathlib.Path in project template and docs.
Thanks Curtis Maloney for the original patch.
This commit is contained in:
parent
77aa74cb70
commit
26554cf5d1
8 changed files with 24 additions and 24 deletions
|
@ -306,7 +306,7 @@ Open your settings file (:file:`mysite/settings.py`, remember) and add a
|
|||
TEMPLATES = [
|
||||
{
|
||||
'BACKEND': 'django.template.backends.django.DjangoTemplates',
|
||||
'DIRS': [os.path.join(BASE_DIR, 'templates')],
|
||||
'DIRS': [BASE_DIR / 'templates'],
|
||||
'APP_DIRS': True,
|
||||
'OPTIONS': {
|
||||
'context_processors': [
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue