Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Recommend relative imports within Django components.
  • Loading branch information
aaugustin committed Aug 22, 2015
1 parent 7d60659 commit 0eb8466
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion docs/internals/contributing/writing-code/coding-style.txt
Expand Up @@ -67,7 +67,8 @@ Imports
* Put imports in these groups: future, standard library, third-party libraries, * Put imports in these groups: future, standard library, third-party libraries,
other Django components, local Django component, try/excepts. Sort lines in other Django components, local Django component, try/excepts. Sort lines in
each group alphabetically by the full module name. Place all ``import module`` each group alphabetically by the full module name. Place all ``import module``
statements before ``from module import objects`` in each section. statements before ``from module import objects`` in each section. Use absolute
imports for other Django components and relative imports for local components.


* On each line, alphabetize the items with the upper case items grouped before * On each line, alphabetize the items with the upper case items grouped before
the lower case items. the lower case items.
Expand Down

0 comments on commit 0eb8466

Please sign in to comment.