@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).
As a part of our Wagtail Space month, we invited members of our global community to submit virtual talks highlighting some of the awesome things they've done with a Wagtail.
Our first virtual talk features something everyone can relate to: the weather.
Why is it that python code always feels like it needs way less indentation and feels like the logic can be implemented much simpler. Or is it #django that makes this feel like it.
@fabian yep, compared to #JS. Sorry didn't say that, but I meant it, yes.
I somehow write nicer code without thinking much in Python, in JS I screw up code (beauty) a lot easier and faster.
@wolframkriesing Yeah, I can see that. I don’t hate JS’ syntax, but it’s definitely noisier as well, even when not considering constructs that are not possible in Python:
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?
@webology@bmispelon@offby1 Once upon a time we wanted to do this with the AppConfig classes, to fully dynamically load them on startup, wasn’t there a package that implemented this?
@nanorepublica it's a tricky one. I've seen the same thing you're describing with many junior folks coming to Django. But I think there's also utility in db GUIs for folks who find visual representations useful or want a quick overview of, for example, constraints.
Hello Folks! We have a whole month of awesome events to look forward to, including two Wagtail Space events in Europe and the US. Check out this blog post to get the full rundown on where folks from the Wagtail community are going to be hanging out together this June! https://wagtail.org/blog/to-wagtail-space-and-beyond-a-month-of-live-wagtail-events/
Is it reasonable to use #Django + #drf , and #Keycloak for authn and authz ? Do I need another dependency like Django #allauth ? I see tutorial authors implementing BaseAuthentication from rest_framework.authentication (eg to plug in a JavaScript frontend). Is that enough to be secure? @adamchainz@adamghill any thoughts or a boost would be a gigantic help! 🙏
@blong@adamchainz@adamghill Hello! 👋 Adding in my two cents -- I think Django + DRF work well together (also never used allauth for APIs)
You can use custom DRF authentication classes, like you mentioned, to handle JWT validation/decoding along with user authentication, and lock down your endpoints with scope-based authz via custom DRF permissions if you need to! Hope that helps!
I have availability for a new client. I specialise in #django as backend and can deal with any frontend. Or if nothing exists I am quite happy to come in a build something from scratch.
I work on a fractional/part-time basis.
Drop me a line or book a call via my site (see my profile)