Skip to content

Instantly share code, notes, and snippets.

View TechRancher's full-sized avatar

J Sikes TechRancher

View GitHub Profile
@TechRancher
TechRancher / coding_style_checklist.md
Created July 25, 2020 00:57
Coding Style For Django Plus Best Practice Coding Tips

Coding Style For Django

Please follow these coding standards when writing code for inclusion in Django. - Django Documentation

Python Style

  • 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.
@TechRancher
TechRancher / django_admin_command_list.md
Created July 25, 2020 03:32
Django-admin Command List

Django-Admin Command List

This is a list of the different django-admin commands

# Allows changing a user's password. It prompts you to enter a new password twice for the given user.
django-admin changepassword <username>

# Checks the entire django project of potential problems
django-admin check