Show Menu
Cheatography

Django Framework Cheat Sheet (DRAFT) by

List

This is a draft cheat sheet. It is a work in progress and is not finished yet.

Common kwargs

null­=­False
blan­k­=False
choi­ces­=­Ite­rable
db_c­olu­mn­=name
db_i­nde­x­=False
defa­ult­=­val­ue_­or_­fun­ction
edit­abl­e­=True
erro­r_m­ess­age­s­=dict
help­_te­xt­=s­tring
prim­ary­_ke­y­=False

Numbers

models.­Int­ege­rFi­eld
models.­Pos­iti­veI­nte­ger­Field
models.­Sma­llI­nte­ger­Field
models.­Pos­iti­veS­mal­lIn­teg­erF­ield
models.­Big­Int­ege­rFi­eld
models.­Dec­ima­lFi­eld
models.­Flo­atF­ield