#23438 closed Cleanup/optimization (fixed)
Use relative imports consitently on overview page
| Reported by: | BirchMaple | Owned by: | Tim Graham |
|---|---|---|---|
| Component: | Documentation | Version: | 1.7 |
| Severity: | Normal | Keywords: | Documentation, urls |
| Cc: | Triage Stage: | Accepted | |
| Has patch: | no | Needs documentation: | no |
| Needs tests: | no | Patch needs improvement: | no |
| Easy pickings: | no | UI/UX: | no |
Description
There is a code error in https://docs.djangoproject.com/en/1.7/intro/overview/#design-your-urls.
"from . import views", i think this should be "from news import views".
Notice the last line.
Change History (4)
comment:1 by , 11 years ago
comment:2 by , 11 years ago
| Owner: | changed from to |
|---|---|
| Status: | new → assigned |
| Summary: | Documentation error → Use relative imports consitently on overview page |
| Triage Stage: | Unreviewed → Accepted |
| Type: | Bug → Cleanup/optimization |
comment:3 by , 11 years ago
| Resolution: | → fixed |
|---|---|
| Status: | assigned → closed |
Note:
See TracTickets
for help on using tickets.
These are called relative imports and are fine to use (and usually preferred over absolute imports). This page could be cleaned up a bit to use them consistently though.