TextMate Python/Django/ReST Cheat Sheet PYTHON COMMANDS
⌃⌥⇧P
Pydoc for curr. selection
F3
Run script in terminal Run UnitTests
DJANGO COMMANDS Search djangoproject
DJANGO TEMPLATE ⌃H
⌘⇧R
Add filter Block {% tag %}
⌥⌘⇧R
⌃⌥⇧D ⌘| ⌃%
Comment {# tag #}
⌃#
Variable {{ tag }}
⌃{
Execute line/selection
⌃⇧E
DJANGO SNIPPETS
Debug script in terminal
⇧⌘D
mail.sendmail function
Pydoc in browser
⌃⇧H
TEMPLATE SNIPPETS
Copy curr. block symbol
⌃⌥C
template function name
...⇥
Show curr. block symbol
⌃⌥P
Templatetag openblock
{%⇥ %}⇥
PYTHON SNIPPETS If name == main block New property self.
sendmail⇥
DJANGO FIELDS Field name, lc, w/o “Field”
...⇥
Templatetag closeblock
ForeignKey
fk⇥
Templatetag openvar
{{⇥
Templatetag closevar
}}⇥
ReST SNIPPETS ifmain⇥ property⇥ .⇥
Section tag Subsection tag
subs⇥
ReST COMMANDS
⌃⌥⇧R
Subsubsection tag
sss⇥
Convert to HTML
⌃⇧H
link⇥
Goto next section
⌘~
Create HTML/XML/S5
⌘R
Try/except blocks
try⇥
Link tag
__magic__
__⇥
Image tag
TextMate Python/Django/ReST Cheat Sheet
sec⇥
image⇥