mirror of
https://github.com/jazzband/django-admin2.git
synced 2026-04-04 23:20:42 +00:00
added template best practices to contributing.rst
This commit is contained in:
parent
0f56bde069
commit
8644fb02f9
1 changed files with 11 additions and 0 deletions
|
|
@ -185,6 +185,9 @@ django-admin2 pull requests should be as small/atomic as possible. Large, wide-s
|
|||
Best Practices
|
||||
--------------
|
||||
|
||||
Python
|
||||
~~~~~~
|
||||
|
||||
Follow PEP-0008 and memorize the Zen of Python::
|
||||
|
||||
>>> import this
|
||||
|
|
@ -201,6 +204,14 @@ As much as possible, we follow the advice of the `Two Scoops of Django`_ book. P
|
|||
|
||||
.. _`Two Scoops of Django`: https://2scoops.org
|
||||
|
||||
Templates
|
||||
~~~~~~~~~
|
||||
|
||||
Follow bootstrap's coding standards for HTML_ and CSS_. Use two spaces for indentation, and write so the templates are readable (not for the generated html).
|
||||
|
||||
.. _HTML: https://github.com/twitter/bootstrap/blob/master/CONTRIBUTING.md#coding-standards-html
|
||||
.. _CSS: https://github.com/twitter/bootstrap/blob/master/CONTRIBUTING.md#coding-standards-css
|
||||
|
||||
|
||||
How pull requests are checked, tested, and done
|
||||
===============================================
|
||||
|
|
|
|||
Loading…
Reference in a new issue