Please follow these coding standards when writing code for inclusion in Django. - Django Documentation
- Use EditorConfig or conform to the indentation style dictated in the .editorconfig file
- Use 4 spaces for indentation with Python and 2 indentation spaces for HTML files.
- Use PEP 8 Python style as a guide
- Use flake8 to check for problems in this area. But Django has line lengths rules that are different then PEP 8 recommends.