Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

template doesn't exist for Django 2.0 #28

Open
bl3z3 opened this issue Aug 21, 2018 · 1 comment
Open

template doesn't exist for Django 2.0 #28

bl3z3 opened this issue Aug 21, 2018 · 1 comment

Comments

@bl3z3
Copy link

bl3z3 commented Aug 21, 2018

To avoid the error above, change:
TEMPLATE_DIRS=(
os.path.join(BASE_DIR, 'templates'),
),
to TEMPLATES= [{
'BACKEND': 'django.template.backends.django.DjangoTemplates',
'DIRS': [os.path.join(BASE_DIR, 'templates')],
}]
for it to work properly

@youguanxinqing
Copy link

To avoid the error above, change:
TEMPLATE_DIRS=(
os.path.join(BASE_DIR, 'templates'),
),
to TEMPLATES= [{
'BACKEND': 'django.template.backends.django.DjangoTemplates',
'DIRS': [os.path.join(BASE_DIR, 'templates')],
}]
for it to work properly

I have taken much time to solve it... Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants