[Answered ]-No module named simple error in Django

2👍

It seems function based views have been deprecated in Django 1.3 (and may have been removed in the latest dev)
You should then replace them with the class-based views provided in Django 1.4

Deprecated function-based generic views
Class based views

You might be interested in the TemplateView.

0👍

django.views.generic.simple was deprecated and doesn’t exist beyond django 1.4. Is there a specific reason you are using a development branch of django and not the latest stable version (1.4.2)?

I would recommend either using django 1.4.2 (which has django.views.generic.simple or use render (from django.shortcuts import render) instead of direct_to_template.

👤dgel

Leave a comment