Opened 6 years ago

Closed 6 years ago

#19626 closed Bug (invalid)

No module named django.views.generic.simple in 1.5c1

Reported by: anonymous Owned by: nobody
Component: Generic views Version: 1.5-beta-1
Severity: Normal Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no


I have this line in my

from django.views.generic.simple import redirect_to

Django breaks with: "No module named simple".

I guess this means that django.views.generic.simple is not available in 1.5 anymore. This is a backward incompatible change. But this is not mentioned in in the release notes.

Here is the traceback:


Request Method: GET
Request URL: http://localhost:8000/

Django Version: 1.5c1
Python Version: 2.7.3
Installed Applications:


Installed Middleware:


File "/usr/local/lib/python2.7/dist-packages/django/core/handlers/" in get_response

  1. response = middleware_method(request)

File "/usr/local/lib/python2.7/dist-packages/django/middleware/" in process_request

  1. check_path = self.is_language_prefix_patterns_used()

File "/usr/local/lib/python2.7/dist-packages/django/middleware/" in is_language_prefix_patterns_used

  1. for url_pattern in get_resolver(None).url_patterns:

File "/usr/local/lib/python2.7/dist-packages/django/core/" in url_patterns

  1. patterns = getattr(self.urlconf_module, "urlpatterns", self.urlconf_module)

File "/usr/local/lib/python2.7/dist-packages/django/core/" in urlconf_module

  1. self._urlconf_module = import_module(self.urlconf_name)

File "/usr/local/lib/python2.7/dist-packages/django/utils/" in import_module

  1. import(name)

File "/home/evgeni/cmb/cmbarter/../cmbarter/" in <module>

  1. from django.views.generic.simple import redirect_to

Exception Type: ImportError at /
Exception Value: No module named simple

Change History (2)

comment:1 Changed 6 years ago by epandurski@…

comment:2 Changed 6 years ago by Tim Graham

Resolution: invalid
Severity: Release blockerNormal
Status: newclosed

It's mentioned in the Deprecation Timeline: under 1.5 ("The function-based generic view modules will be removed in favor of their class-based equivalents") as well as the 1.3 release notes when these functions were originally deprecated:

Note: See TracTickets for help on using tickets.
Back to Top