Opened 9 years ago
Closed 9 years ago
#27031 closed Bug (worksforme)
Django Tutorial: incorrect import statement
| Reported by: | Jonathan Schlue | Owned by: | nobody |
|---|---|---|---|
| Component: | Documentation | Version: | 1.10 |
| Severity: | Normal | Keywords: | |
| Cc: | Triage Stage: | Unreviewed | |
| Has patch: | no | Needs documentation: | no |
| Needs tests: | no | Patch needs improvement: | no |
| Easy pickings: | yes | UI/UX: | no |
Description
On starting the dev server, I got an Exception, basically saying 'cannot import name HTTPResponse'.
Fixed on Mac OS X El Capitan 10.11.5 (15F34), Python 2.7., Django 1.10
- changed import line to 'from django.http import response'
- return line in index to 'return http.HttpResponse(...)'
Note:
See TracTickets
for help on using tickets.
Sorry, but
HTTPResponseis nowhere in the tutorial. I guess the error must come from a miswritten import in your code.Please provide more information if you still think the tutorial is at fault.