• #414 Because we are not monsters

  • Dec 16 2024
  • Length: 30 mins
  • Podcast

#414 Because we are not monsters

  • Summary

  • Topics covered in this episode: New project to shorten django-admin to django because we are not monstersdjango-unicorn: The magical reactive component framework for Django Testing some tidbitsThe State of Python 2024 articleExtrasJokeWatch on YouTube About the show Sponsored by us! Support our work through: Our courses at Talk Python TrainingThe Complete pytest CoursePatreon Supporters Connect with the hosts Michael: @mkennedy@fosstodon.org / @mkennedy.codes (bsky)Brian: @brianokken@fosstodon.org / @brianokken.bsky.socialShow: @pythonbytes@fosstodon.org / @pythonbytes.fm (bsky) Join us on YouTube at pythonbytes.fm/live to be part of the audience. Usually Monday at 10am PT. Older video versions available there too. Finally, if you want an artisanal, hand-crafted digest of every week of the show notes in email form? Add your name and email to our friends of the show list, we'll never share it. Brian #1: New project to shorten django-admin to django because we are not monsters Jeff Tripplet has created django-cli-no-admin to shorten django-admin to just django.“One of the biggest mysteries in Django is why I have to run django-admin from my terminal instead of just running django. Confusingly, django-admin has nothing to do with Django’s admin app.”Instead of typing things like: django-admin startproject mysite projectnameWe can type the shorter: django startproject mysite projectnameI love this kind of developer speedup / comfort improvementsAnd yes, Jeff wants Django to eventually include this as the default way to run the command line utilities. Michael #2: django-unicorn: The magical reactive component framework for Django Add modern site functionality: Quickly add in simple interactions to regular Django templates without learning a new templating language.Skip the JavaScript build toolsNo API required: Skip creating a bunch of serializers and just use Django. Brian #3: Testing some tidbits Ned BatchelderDifferent ways to test to see if a string has only 0 or 1 in it.And also, a way to check all the different ways to make sure they work.Fun post, and I learned about cleandoc - a way to strip leading blank space and maintain code block indentation I usually use textwrap.dedent()partition - splitting strings based on a substringUsing | to pass imports to eval() - I don't use eval much.However, no pytest! Here’s a way to check all this with pytest: Testing some tidbits with pytest Michael #4: The State of Python 2024 article Python usage with other languages drops as general adoption grows41% of Python developers have under 2 years of experiencePython learning expands through diverse channelsThe Python 2 vs. 3 divide is in the distant pastFlask, Django, and FastAPI remain top Python web frameworksMost Python web apps run on hyperscale cloudsContainers over VMs over hardwareuv takes Python packaging by storm Extras Brian: More Django: Dracula Theme for Django Admin Michael: Zen Browser updateOffice refreshTranscripts (in some players) Joke: Volkswagen, passing all the tests
    Show more Show less
activate_Holiday_promo_in_buybox_DT_T2

What listeners say about #414 Because we are not monsters

Average customer ratings

Reviews - Please select the tabs below to change the source of reviews.