djangotips @djangotips
little bits of django goodness in 140 characters or less. and it's all powered by you, the django community. :) dm your tips to @djangotips! django.tweetips.net Joined January 2009-
Tweets27
-
Followers286
-
Following322
-
Likes0
we just launched the latest member of the tweetips family! now you can follow @csstips for little bits of CSS goodness too.
via @tkaemming: add "from __future__ import division" at the top of a .py file to force "true division" (no rounding)
via @shacker: to delete *.pyc files, in .profile add: alias delpyc = 'find . -name "*.pyc"* -exec rm {} \;' to use "delpyc" in shell.
via @tkaemming: give your model fields overly descriptive names, and always use help text. you'll thank yourself during maintenance. :)
via @disturbyte: I like to use the JSON parser to parse arguments in custom Django template tags. It's available in django.utils.simplejson.
via @truebosko: Filters can reference fields on the model using the new F() object in 1.1: query.filter(qty_sold__lt=F('quantity'))
via @tkaemming: you can create models in a separate "models" module instead of a models.py file by defining an app_label in your model Meta.
via @truebosko: You can use .as_sql() on a QuerySet to see the RAW SQL it uses. Quick way to debug some queries.
via @davidbgk: Painless doctests debug tool http://tinyurl.com/dzxtbt Usage: >>> import interlude; interlude.interact(locals())
via @swbratcher: Great first run django tutorial/how-to for new users. Illustrates building a to-do app from scratch. http://bit.ly/yGIL
note: context processors & middleware have different purposes that can solve the issue in different situations. that's why we shared both :)
via @howiworkdaily: actually a custom context_processor is better for adding something like shopping_cart to every request, not middleware
via @andrewingram: if you want something available to every request (like a shopping cart), custom middleware might be the answer
via @tkaemming: to recursively remove all of your *.pyc files in a bash terminal, run: find . -name "*.pyc" -exec rm '{}' ';'
via @truebosko: quick inspection of a models fields: you can go through model._meta.fields, e.g [x.__dict__ for x in XY._meta.fields]
via @jacobian: http://twurl.nl/7gtmzk is a better idea than bare "print." Much more flexible.
via @AbeEstrada: add print "variable" in your views.py file and you can debug in terminal
via @andrewingram: adopt the preferred file structure of benchmark Django apps as soon as possible, it lets you work very quickly
via @tkaemming: you can set all your forms to action="" to post a page to its own URL as long as your URL ends with a forward slash.
via @truebosko: Fetch the latest entry within an object using Foo.objects.latest('field_name'). A neater way then slicing your query.

Harouna Diallo @harouna_gn
292 Followers 288 Following Driving Africa business growth through digital solutions. Enhancing African talent. Currently building Nimba Solution @nimbasolution - focused SRE.
Lathi @Lathi525217
11 Followers 908 Following Follow me, maybe it's the beginning of our fate, we can talk
MazingerXXL @MazingerXXL
32 Followers 203 Following
Malhar Yadav @MY121001
12 Followers 580 Following Sometimes all I want to do is head west on twenty in a car I can't afford with a plan I don't have. Just me, my music and the road.
Metin Emiroglu @amiroff
447 Followers 832 Following Software craftsman enjoying developing webapps & riding a bike. Lead solution architect @akinonCulture
Uncle_Fii @local_Boi
744 Followers 2K Following Cloud Infrastructure & Administration ☁️ | Backend Dev | Sys Admin 🖥️
Gil Klein @gklein
481 Followers 4K Following Lead Admin of Supertools (since 2018) | Co-founder of https://t.co/ER8NL2JRIT | Red-Hatter
Duane Hilton @duane9
158 Followers 512 Following Software engineer skilled in Python, JavaScript, and AWS. I like solving problems and reading nonfiction. @sjsu alum.
Brian Beale @brianbeale
108 Followers 1K Following Certified Google Cloud Architect, full stack engineer, self-documenting code monkey, currently learning the full generative AI/LLM stack.
Tim Sloan (he/him) @TimSloan
780 Followers 2K Following Fraction CTO | Product Strategist. I build cool stuff on the web. 🏀 fan. Raptors. AI enthusiast & experimenter.
@[email protected] @tttallis
381 Followers 2K Following Thomas the Woodcutter Angry old man raving on the moor 📢
Ashwin Kumar @i_ashwink
334 Followers 4K Following i created https://t.co/IR8HhOqxsQ to help developers code faster and better, #startup, #devops, #cloud, #opensource, #machienelearning
Lars K. Hansen @Larsiutvikling
67 Followers 532 Following Utviklar, Linux -entusiast og bygdeoriginal som tørr å gå eigne vegar. Likar meg best på upløyd mark med nye utfordringar.
LIARD Meven @LiardMeven
4 Followers 124 Following
what. @whatdotdigital
4K Followers 1K Following We provide product concept & design, go to market & growth hacking strategies and web & app development. Contact @marcuskuhn @LukeSz @colombo_mario
Tomás Antal @tomas_antal
10 Followers 161 Following
Руслан @dj_rexxx
18 Followers 188 Following
sergpo @sergpo
9 Followers 119 Following
Regis do Python @rg3915
2K Followers 178 Following Web Developer with Python and Django. https://t.co/I4hFTFkHWd
Filip Novák @filip_f_novak
28 Followers 48 Following
Michael Voronin @mivoronin
11 Followers 109 Following Jack of all trades, master of Python and JavaScript.
Pita Poison @PitaPoison
520 Followers 869 Following I used to a Pirate, an Etherpad lite developer, a Yammer Guy and a world traveler. Currently I'm working for a big software company.
Bartłomiej Wołyńcz... @wolynczyk
30 Followers 324 Following
iAm 🫧 @WaDaDaaaa
202 Followers 2K Following Frontend Engineer and Amateur Triathlete 🏊🏽♀️ 🚴🏽♀️ 🏃🏽♀️IRONMAN 70.3 finisher. One-woman army 👩💻
AmitU is building fas... @amitu
1K Followers 588 Following Creator of https://t.co/Wc4rQUpWH8. @IITBombay. YC-W21. Ex @BrowserStack. Ex @AckoInsurance.
Michał Rusin @Krzyvy
192 Followers 2K Following Full stack Developer - JavaScript, Node.js, React. PHP, JS, SQL, Arduino is also fine for me. Linux enthusiast. ESP32
HC Jobs - iOS @HCJiOS
422 Followers 398 Following Offres d'emploi pour développeurs #iOS. Suivez l'actu #iOS sur @HCNiOS — Un service @HumanCoders![@Suitmedia ◈ Suitmedians Mobile Applications Developers ◈ mobile[@]suitmedia[.]com](https://pbs.twimg.com/profile_images/2795504926/ea11ac01537e6f8965a9076854bce164.png)
Suitmedia Mobile @Suitmobile
155 Followers 946 Following @Suitmedia ◈ Suitmedians Mobile Applications Developers ◈ mobile[@]suitmedia[.]com
Psycholog @katarzynazyla
48 Followers 488 Following
Dhiraj Thakur @dhirajt284
73 Followers 238 Following
fábio cerqueira @fabiocerqueira
776 Followers 4K Following
Cem Evren Ateş @cemevrenates
1K Followers 601 Following
chanlon @chanlon
90 Followers 533 Following
Simon Willison @simonw
115K Followers 6K Following Creator @datasetteproj, co-creator Django. PSF board. Hangs out with @natbat. He/Him. Mastodon: https://t.co/t0MrmnJW0K Bsky: https://t.co/OnWIyhX4CH
Niera Davod 🦋 @spontaniouse
823 Followers 17 Following Knowing yourself is the beginning of all wisdom. $XRP girly ✨
mattʇʇɐɯ😷💉 @mattjmorrison
428 Followers 4 Following he/him, Father, Husband, Progressive, Skeptic, Vegan, Software Developer, Comic Reader, Tabletop Gamer
David Sauve @notanumber
127 Followers 116 Following
Mathieu Leduc-Hamel @mlhamel
978 Followers 1K Following Dad, Senior Director of Eng. at @nasdaq ex-@_Metrio_, ex-@shopify, @ThePSF Member, former president of @mtlpy.
Allen Riddell @ariddell
654 Followers 780 Following Exploring cultural history using Bayesian statistics. No longer using Twitter.
twinsant.eth @twinsant
816 Followers 2K Following 每天思考工作学习15小时:群众,毛粉,共产主义战士,自发大文宣 07好看簿联创/10云彩手机直播联创/Bitcoin信徒/06-15Web2.0创业者/Web3 Builder/元宇宙游民/AI小学生 Product Engineer: Reading, Writing/Thinking, Coding.
Le monde en Tique @LeMondeEnTique
267 Followers 669 Following Librairie (informatique, réseaux, NTICs, management et économie)
Martin De Wulf 🤷�... @madewulf
2K Followers 2K Following CTO at @blsqhub Software for Public Health and GIS Python/Android/JS.
DonitaBowers @DonitaBowers0
50 Followers 492 Following
Henrique Bastos @henriquebastos
7K Followers 134 Following 🐍 Enjoying Python since 1999 ⛩ Trained 10k+ devs to go beyond coding 🚀 PSF and DSF Fellow 🎪 Community builder with genuine care for people
SadieSharp @SadieSharp350
49 Followers 481 Following
FurtiveSideGlance @rosscdh
700 Followers 4K Following .. less is more ... less war more peace, less hate more tolerance. If the current state is the new world order, keep it thanks #studyPropaganda #LIO
Venky @bevenky
6K Followers 3K Following Founder/CEO @plivo. Excited about everything new in AI & Robotics.
Metin Emiroglu @amiroff
447 Followers 832 Following Software craftsman enjoying developing webapps & riding a bike. Lead solution architect @akinonCulture
T K @kadel
207 Followers 538 Following
slawek walczak @yarpowski
56 Followers 216 Following
Suza N. Rehnquis @SuzaNRehnquis
117 Followers 570 Following
meow @weremeow
759K Followers 1K Following web4 cat & 25-8 bag worker / @jupiterexchange @moonshot @meteoraag
Phil Mocek @pmocek
2K Followers 1K Following Software developer, sysadmin, activist. Advocate of free software (libre), open standards, governmental transparency, drug policy reform, and civil liberties.
Andres in 🇨🇦 @zodman
2K Followers 4K Following Software Developer. Creator of https://t.co/kmFCcSY3Ca https://t.co/fjbp5BDdT1 https://t.co/PnoRfPsQsr
Triangle Django @TriDjUG
148 Followers 32 Following We are a group of fans of the Python based Django web framework.
Darba apģērbi @DarbaApgerbi
43 Followers 43 Following Šujam darba apģērbus ziemas un vasaras sezonai, kā arī no kamuflāžas audumiem.
Гопники, бы�... @Urlas
72 Followers 134 Following
Alexey @dotsbb
24 Followers 111 Following
Nope @valuedstandards
618 Followers 1K Following
Ales Zoulek @aleszoulek
460 Followers 504 Following python, django, whiskey media devops, archlinux, biker and dad
Mateus Lorandi @comogo
97 Followers 240 Following Web developer, sempre ligado às novas tendências e tecnologias.
Joe @joerabelo
213 Followers 491 Following Filho imperfeito de Deus, casado e pai de 2. Engenheiro de Software, estudante de teologia, guitarrista amador e vascaíno sofredor. ✞ . ♫ . ◤✠◢
Do You Django @DoYouDjango
173 Followers 106 Following More coming soon, but in the mean time, we want to know where, how and why do you django.
उद्भव ग�... @udbhavgupta
331 Followers 119 Following I play music in Mr Twin Sister and help people do their royalty accounting with Infinite Catalog