Code guidelines¶
Python code¶
Follow PEP8. Some parts of PEP8 is just “preferred” or has options. In those cases, we do the following:
- Indent with spaces is REQUIRED, not just preferred.
- You can use 100 chars long lines for Python code.
Django templates¶
- Indent with 4 space (no tabs).
- Use
.django.html
as filename suffix. This enables us to configure our editors to syntax hilight Django html templates with a different hilighter than AngularJS templates.