KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I've just upgraded to Django 1.5, and when I try and access a page, I get the following error: ImproperlyConfigured: Error importing middleware app.middleware: "cannot import name get_host" In the shell, I try a similar thing: >>> from app import middleware Traceback (most recent call last): File "<console>", line 1, in <module> File ".../middleware.py", line 2, in <module> from django.http import HttpResponseRedirect, HttpResponsePermanentRedirect, get_host ImportError: cannot import name get_host It's failing on the import of get_host . It doesn't seem that this is deprecated, what's going on?
Tags (comma-separated)
Save Edits
Cancel