@bmispelon@mastodon.social
@bmispelon@mastodon.social avatar

bmispelon

@bmispelon@mastodon.social

💩🔥💻

This profile is from a federated server and may be incomplete. Browse more on the original instance.

Rachell, to random
@Rachell@mastodon.social avatar

Any past @djangogirls coaches or organizers gonna be at @djangoconeurope ? Please let me know! We are trying to plan some fun stuff and I'd love to invite you.

bmispelon,
@bmispelon@mastodon.social avatar

@Rachell 🙋🏻‍♂️

bmispelon, to django
@bmispelon@mastodon.social avatar

New article on my blog: a ORM technique I found for combining JSONObject and Subquery to build model instances: https://blog.bmispelon.rocks/articles/2024/2024-05-09-django-getting-a-full-model-instance-from-a-subquery.html

bmispelon,
@bmispelon@mastodon.social avatar
bmispelon, to django
@bmispelon@mastodon.social avatar

Just published a new article on trying to find the best way to initialize Sentry in a #Django project: https://blog.bmispelon.rocks/articles/2024/2024-04-06-sentry-initialization-in-a-django-project.html

adamchainz, to random
@adamchainz@fosstodon.org avatar

Loving all the @djangonaut mentions at @djangoconeurope, including this lightning talk from Raffaella

#DjangoConEurope

bmispelon,
@bmispelon@mastodon.social avatar

@mahryekuh @adamchainz @djangonaut @djangoconeurope having met her, I can confirm

nanorepublica, to django
@nanorepublica@indiehackers.social avatar

📣 Context Processors in 100 words
📄 What they are and when you might want one
🔗 https://softwarecrafts.co.uk/100-words/day-105
,,

bmispelon,
@bmispelon@mastodon.social avatar

@nanorepublica If you allow me a nitpick, context processors are used only when using a RequestContext (which shortcuts.render() uses), but not if you render a template "by hand" with a regular Context object.

Also your my_view example is missing the first argument to render() (the request object).

webology, (edited ) to random
@webology@mastodon.social avatar
bmispelon,
@bmispelon@mastodon.social avatar

@webology this week might be a stretch due to conference, but I might try to stop by to say hi

bmispelon,
@bmispelon@mastodon.social avatar

@webology if only I could find a project to rewrite some python 2 into rust, then we could collaborate!

bmispelon, to django
@bmispelon@mastodon.social avatar

I just discovered that the #Django runserver command can be optimized to run better in colder climates by using a special flag:

python manage.py runserver --ski

⛷️ 🏔️ ❄️

I wonder if there are also secret optimizations for warmer climates 🤔

bmispelon, to django
@bmispelon@mastodon.social avatar
bmispelon, to random
@bmispelon@mastodon.social avatar

Came across a for you today @treyhunner

from datetime import date, timedelta
print(date.today() == timedelta(hours=12) + timedelta(hours=12) + date.today())
print(date.today() == timedelta(hours=12) + date.today() + timedelta(hours=12))
print(date.today() == date.today() + timedelta(hours=12) + timedelta(hours=12))

daniel, to random German
@daniel@social.telemetrydeck.com avatar

Buglur

bmispelon,
@bmispelon@mastodon.social avatar

@daniel 99 garms of buglur to be exatc

benjaoming, to random
@benjaoming@social.data.coop avatar

CRUD. C=Create, R=Read, U=Update, D=Delete, (null)=List.

Here is the proper acronym:

CRUDL

(pronounced cruddle)

Edit: Now updated, still unsure why I always feel super annoyed with this acronym 😂

bmispelon,
@bmispelon@mastodon.social avatar

@benjaoming Your acronym game is strong though, even without coffee!

bmispelon,
@bmispelon@mastodon.social avatar

What about Create Update View Erase Explore? 🍷

bmispelon,
@bmispelon@mastodon.social avatar

@benjaoming I always thought the R stood for "read"

offby1, to django
@offby1@wandering.shop avatar

I have a possibly obvious-to-experts #Django question: is there a supported way for a Django “app" to depend on other apps, and implicitly "install" them?

bmispelon,
@bmispelon@mastodon.social avatar

@offby1 by "install" you mean "add it to settings.INSTALLED_APPS"?

If so then as far as I know that's not supported. Might be possible with some serious hacking but I'm not sure I'd recommend that. The way it's usually done is by checking at load time (an Appconfig.ready() is a good place for that) and raise an InproperlyConfigured telling the user to change their settings.

sabderemane, to random French
@sabderemane@mastodon.social avatar

Vale, on my way to Vigo! 🥳🥳

bmispelon,
@bmispelon@mastodon.social avatar

@sabderemane See you there! ✨

treyhunner, to random
@treyhunner@mastodon.social avatar

@bmispelon I just ran across a slidedeck of yours from 2013!

I searched Kagi for "python -m pyclbr" and there were only about 6 results. Yours was one of them.

https://speakerdeck.com/bmispelon/stdlib-safari-exotic-animal-edition?slide=91

bmispelon,
@bmispelon@mastodon.social avatar

@treyhunner oh wow, that's a blast from the past! What are you doing playing around with pyclbr?

bmispelon,
@bmispelon@mastodon.social avatar

@treyhunner oh cool, I didn't know about sys.stdlib_module_names that's neat

bmispelon,
@bmispelon@mastodon.social avatar

@treyhunner how did you find them all? I vaguely remember that I looked for main.py files in my cpython checkout back when I did that presentation. Do you have a better method?

bmispelon,
@bmispelon@mastodon.social avatar

@treyhunner a+ emoji game right there 💯

bmispelon, to random
@bmispelon@mastodon.social avatar

I published a new article on my blog: How to do search and replace with https://blog.bmispelon.rocks/articles/2024/2024-06-03-git-search-and-replace.html

bmispelon, to random
@bmispelon@mastodon.social avatar

💿🏇🏻🅰️🆖🔵

bmispelon, to random
@bmispelon@mastodon.social avatar

I did some pair programming today and had to ask my colleague to increase their font size in their text editor and terminal

Does that mean I'm officially old? 👴🏻

bmispelon,
@bmispelon@mastodon.social avatar

@pythonbynight that's why I always keep mine on the same spot: the top of my nose 😂

  • All
  • Subscribed
  • Moderated
  • Favorites
  • JUstTest
  • mdbf
  • ngwrru68w68
  • tester
  • magazineikmin
  • thenastyranch
  • rosin
  • khanakhh
  • InstantRegret
  • Youngstown
  • slotface
  • Durango
  • kavyap
  • DreamBathrooms
  • megavids
  • tacticalgear
  • osvaldo12
  • normalnudes
  • cubers
  • cisconetworking
  • everett
  • GTA5RPClips
  • ethstaker
  • Leos
  • provamag3
  • anitta
  • modclub
  • lostlight
  • All magazines