Opened 10 years ago

Closed 10 years ago

Last modified 10 years ago

#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 BirchMaple, 10 years ago

comment:2 by Tim Graham, 10 years ago

Owner: changed from nobody to Tim Graham
Status: newassigned
Summary: Documentation errorUse relative imports consitently on overview page
Triage Stage: UnreviewedAccepted
Type: BugCleanup/optimization

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.

comment:3 by Tim Graham <timograham@…>, 10 years ago

Resolution: fixed
Status: assignedclosed

In 88c4e01d343f6b9165b086adbfe6664885229b00:

Fixed #23438 -- Added snippet & imports to docs/intro/overview.txt.

comment:4 by Tim Graham <timograham@…>, 10 years ago

In 2b4817108122fc1098541f34a50fcab74bc1b94e:

[1.7.x] Fixed #23438 -- Added snippet & imports to docs/intro/overview.txt.

Backport of 88c4e01d34 from master

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