DEV Community

Cover image for My beloved Django cheat sheet

My beloved Django cheat sheet

Eric The Coder on April 05, 2021

Follow me!: Follow @EricTheCoder_ Start a new Django project # Create et access project folder ~$ mkdir project_name ~$ cd project_name # C...
Collapse
 
louis2688 profile image
Louis Madrigal

Nice article, Very helpful specially to those whos starting into python :)

Collapse
 
exuszee profile image
Eskias

I started making one for myself with just a simple text file ... then I came across this JEM! Kudos!!! ... Super comprehensive, exactly what's needed to get a django app up-and-running, and obviously the ultimate cheatsheet. I'll definitely be contributing to this, if on github. Thanks.

For context, I started working on a couple of websites using only python(django backend and frontend, bootstrap with literally 3 manually coded Javascript calls for charts, dynamic search in tables, ...) a couple of months back.

Collapse
 
karthik2265 profile image
Karhik Suryadevara

hey, eric
Nice post
I want to learn Django I know python very well.
could you point me towards some resources and advice on how to master django?

Collapse
 
ericchapman profile image
Eric The Coder

Hi,

One of the best Django learning site: learn.justdjango.com/roadmaps/djan...

All the basic stuff is free. Hours and hours of great videos.

Collapse
 
karthik2265 profile image
Karhik Suryadevara

Thanks 👍🏻

Collapse
 
sigzero profile image
sigzero

Wow, thanks for that resource.

Collapse
 
jjordan10 profile image
jjordan10

Hi there! I wanted to reach out and let you know that your cheat sheet is amazing. I find myself referring to it whenever I forget something and it always has the answer I need. Thank you so much for creating it! I would love to see more of your work, so please let me know where I can follow you. Thanks again for all of your hard work!

Collapse
 
r00teraf18 profile image
Amir Hossein Roohi

oh damn, that faker just saved me a lot of time testing stuff, thanks

Collapse
 
pointdeb profile image
Stephano Romain

Hi, nice article.
Just litle mess (dot repeated twice) on

Deleting

article = Article.objects.first()
article..delete()

Collapse
 
ericchapman profile image
Eric The Coder

Thanks. Corrected

Collapse
 
janmpeterka profile image
Jan Peterka

NIce! Just want to say - switched to pipenv from pip+venv and oh my, does it make my life easier!

Collapse
 
ericchapman profile image
Eric The Coder

Yes good advice! I use pipenv too but for the cheat sheet I decide to go for the native way.

Collapse
 
yuhuishishishi profile image
I love integers

Precise and yet very comprehensive. Thanks

Collapse
 
adeborat profile image
adeborat

Very useful, thanks

Collapse
 
careuno profile image
Carlos Merchán

nice, thanks!

Collapse
 
devparkk profile image
Dev Prakash

Brilliant work 🙌👌

Collapse
 
tombohub profile image
tombohub

what about how to get request get and post data?

Collapse
 
rafeqm profile image
Muhammad Rafiqi

Such an incredible resource 👏👏👏

Collapse
 
cambellajoe profile image
cambellajoe

Impressive, very helpful. Made my journey to Django easier, I was struggling with the official documentation.

Collapse
 
fasilu profile image
fasilu

nice keep update please

Collapse
 
dinkopehar profile image
Dinko Pehar

This is really helpful cheat sheet . Thank you very much. From your perspective, what would you add that is maybe missing ? Pagination, Internationalization ?

Collapse
 
786raees profile image
Waqar Khan

Nice Very help to revise

Collapse
 
bourdon94m profile image
Bourdon94m

Amazing Work !

Collapse
 
kudamasangomai profile image
Kuda Masangomai

oooh we have a faker in django nice ..we sure learn everyday.

Collapse
 
manav1011 profile image
Manav1011

can i get this kind of theme for vs code

Collapse
 
cambellajoe profile image
cambellajoe
Collapse
 
jpongthep profile image
jpongthep

Great job.

fix some = in if statement to == :)
user.username = 'Mike'
data = 'Mike'
first_name + last_name = 'MikeTaylor'