@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.

adamchainz, to random
@adamchainz@fosstodon.org avatar

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

bmispelon,
@bmispelon@mastodon.social avatar

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

bmispelon, to random
@bmispelon@mastodon.social avatar

💿🏇🏻🅰️🆖🔵

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!

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).

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

Vale, on my way to Vigo! 🥳🥳

bmispelon,
@bmispelon@mastodon.social avatar

@sabderemane See you there! ✨

offby1, to django
@offby1@wandering.shop avatar

I have a possibly obvious-to-experts 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.

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

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 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 oh cool, I didn't know about sys.stdlib_module_names that's neat

bmispelon,
@bmispelon@mastodon.social avatar

@treyhunner a+ emoji game right there 💯

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 😂

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 🙋🏻‍♂️

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 I always thought the R stood for "read"

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? 🍷

treyhunner, to random
@treyhunner@mastodon.social avatar

Guess which Norwegian, needleworking, library-indexing, BeeWare contributing folks are now on Mastodon in preparation for a future Python conference. 🇳🇴🧵📚🐝

@yngvem & @marieroald!

bmispelon,
@bmispelon@mastodon.social avatar

@treyhunner @yngvem @marieroald Norwegians who do Python? That's not a common sight!

I'm also a Norwegian (kind of, only resident) who does Python and who's always happy to meet other snake loving friends

bmispelon,
@bmispelon@mastodon.social avatar

@treyhunner @yngvem @marieroald just finished watching, that was a really cool talk!

Funnily enough, I've just been to Oslo and happened to go in the Deichman library mentioned towards the end. Maybe I'll try to borrow an embroidery machine next time I'm there 😅

stephanie, to random
@stephanie@fosstodon.org avatar

If anyone's feeling generous, I'd be grateful for a helping hand 😅 first time playing with factories for testing

https://forum.djangoproject.com/t/test-fails-with-assertionerror-302-200/31182

bmispelon,
@bmispelon@mastodon.social avatar

@stephanie I'm on my phone right now which makes it hard to test, but i think your issue is the user factory. You can't create a user with the regular Model.objects.create() because of password hashing
Try using the technique described in https://factoryboy.readthedocs.io/en/stable/recipes.html#custom-manager-methods ?

bmispelon,
@bmispelon@mastodon.social avatar

@stephanie You're welcome! I've definitely been bitten by this in the past too.
It's very sneaky that everything appears to work until you try to log the user in!

bmispelon, to random
@bmispelon@mastodon.social avatar

I'm really enjoying this post by @capjamesg about fun things you can do on your personal website: https://jamesg.blog/2024/02/19/personal-website-ideas/

After many years of thinking about it, I finally created my own site 2 months ago and it's been a lot of fun. I'd definitely recommend it!

bmispelon,
@bmispelon@mastodon.social avatar

@adamchainz Aww, thanks! 😊

kfh, to django
@kfh@chaos.social avatar

You're a good framework, , but sometimes, SOMETIMES, I'm almost losing it.

bmispelon,
@bmispelon@mastodon.social avatar

@kfh Ah yes, that would do it 😁

bmispelon, to django
@bmispelon@mastodon.social avatar

New article on my blog: a #Django 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

@hvdklauw Amazing! I knew that my usage of _meta.get_fields() was a bit optimistic, thanks for getting your hands dirty and doing the legwork on relational fields. Much appreciated ✨

(I'll take a closer look at the code in the next few days)

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