You are on page 1of 1

TextMate Python/Django/ReST Cheat Sheet PYTHON COMMANDS Pydoc for curr.

selection Run script in terminal Run UnitTests Execute line/selection Debug script in terminal Pydoc in browser Copy curr. block symbol Show curr. block symbol ⌃⌥⇧P F3 ⌘⇧R ⌥⌘⇧R ⌃⇧E ⇧⌘D ⌃⇧H ⌃⌥C ⌃⌥P DJANGO FIELDS Field name, lc, w/o “Field” ForeignKey ...⇥ fk⇥ DJANGO SNIPPETS mail.sendmail function
sendmail⇥

DJANGO COMMANDS Search djangoproject ⌃H

DJANGO TEMPLATE Add filter Block {% tag %} Comment {# tag #} Variable {{ tag }}

⌃⌥⇧D ⌘| ⌃% ⌃# ⌃{

TEMPLATE SNIPPETS template function name Templatetag openblock Templatetag closeblock Templatetag openvar Templatetag closevar ...⇥ {%⇥ %}⇥ {{⇥ }}⇥

PYTHON SNIPPETS If name == main block New property self. Try/except blocks __magic__ ifmain⇥ property⇥ .⇥ try⇥ __⇥

ReST SNIPPETS Section tag Subsection tag Subsubsection tag Link tag Image tag sec⇥ subs⇥ sss⇥ link⇥ image⇥ ReST COMMANDS Convert to HTML Goto next section Create HTML/XML/S5 ⌃⌥⇧R ⌃⇧H ⌘~ ⌘R

TextMate Python/Django/ReST Cheat Sheet