@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).
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?
@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.
@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?
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.
Guess which Norwegian, needleworking, library-indexing, BeeWare contributing folks are now on Mastodon in preparation for a future Python conference. 🇳🇴🧵📚🐝
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 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!
@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)
I didn't think I would write over 1800 words about my hurt knee, but here we are.
If you're in the mood for something entirely NOT python related, moody, melancholy, and maybe a little entertaining... check out my latest post at Python By Night. 😅