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

direct_to_template is no longer available in Django 1.5 #11

Open
gennone opened this issue Apr 11, 2014 · 0 comments
Open

direct_to_template is no longer available in Django 1.5 #11

gennone opened this issue Apr 11, 2014 · 0 comments

Comments

@gennone
Copy link

gennone commented Apr 11, 2014

Following http://stackoverflow.com/questions/15621048/how-can-i-satisfy-an-import-of-direct-to-template I added:
from django.views.generic import TemplateView
and changed url definition to:
('^$', TemplateView.as_view(template_name='home.html')),
and it fixed this issue.

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

1 participant