Kaydet (Commit) 0eb84660 authored tarafından Aymeric Augustin's avatar Aymeric Augustin

Recommend relative imports within Django components.

django-developers thread:
https://groups.google.com/d/msg/django-developers/11XvmVdx58w/sFrF0pL8LTgJ
üst 7d60659e
......@@ -67,7 +67,8 @@ Imports
* Put imports in these groups: future, standard library, third-party libraries,
other Django components, local Django component, try/excepts. Sort lines in
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
the lower case items.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment