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

wagtail, to django
@wagtail@fosstodon.org avatar

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.

https://www.youtube.com/watch?v=rtuN92AbRWA

foxmask, to django French
@foxmask@framapiaf.org avatar
wolframkriesing, to django
@wolframkriesing@mastodontech.de avatar

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 that makes this feel like it.

wolframkriesing,
@wolframkriesing@mastodontech.de avatar

@fabian yep, compared to . 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.

fabian,
@fabian@floss.social avatar

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

  • { } ; vs. nothing
  • || && ! vs. and/or/not

This alone makes a visual difference.

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?

webology,
@webology@mastodon.social avatar

@bmispelon @offby1 What Baptiste said.

pip installable is great, but there is no best practice way to inject other apps into INSTALLED_APPS.

jezdez,
@jezdez@publicidentity.net avatar

@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, to django
@nanorepublica@indiehackers.social avatar

📣 Don't use pgAdmin (or similar tools)
📄 Know what Django provides before reaching for extra tools
🔗 https://softwarecrafts.co.uk/100-words/day-104
,,,

ghickman,
@ghickman@mastodon.social avatar

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

ghickman,
@ghickman@mastodon.social avatar

@nanorepublica to be clear, I don't think your article is wrong, just wanted to add some more nuance 😁

wagtail, to django
@wagtail@fosstodon.org avatar

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/

#wagtailcms #Django

djpeacher, to django
@djpeacher@fosstodon.org avatar

Excited to attend @djangoconeurope for the first time this week…albeit virtually from across the Atlantic!

felixxm, to django
@felixxm@fosstodon.org avatar

I am starting my trip to Vigo 🇪🇦 so exicted to see y'all so soon 🎉🎊 #Django #djangoconeurope TOR 🚉 WAW ✈️ MAD 🚄 Vigo

blong, to django
@blong@fosstodon.org avatar

Is it reasonable to use + , and for authn and authz ? Do I need another dependency like Django ? 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! 🙏

sjbitcode,
@sjbitcode@fosstodon.org avatar

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

blong, (edited )
@blong@fosstodon.org avatar

@sjbitcode Hello! 👋 Thank you 🙇‍♂️ That's very helpful! 🙂

mblayman, to django
@mblayman@mastodon.social avatar

🐍 Are and similar? If you want to contrast two of the biggest web frameworks, this article can help you compare the offerings. https://www.mattlayman.com/blog/2021/are-django-flask-similar/

ehmatthes, to django
@ehmatthes@fosstodon.org avatar

django-simple-deploy 0.6.5 is out.

This solidifies support for Platform.sh; multiple deployments should work, and it should work if you have multiple orgs as well.

Now the work shifts to implementing an internal plugin model. I'm really looking forward to this phase of work. :)

https://github.com/ehmatthes/django-simple-deploy/blob/main/CHANGELOG.md

ehmatthes,
@ehmatthes@fosstodon.org avatar

For anyone curious to follow, this is the main issue tracking plugin work:

https://github.com/ehmatthes/django-simple-deploy/issues/313

djangobrew, to Podcast
@djangobrew@fosstodon.org avatar

Adam here! We are currently recording a new episode of Django Brew, but I wanted to document how (and a little bit of why!) we make this podcast. ✨

https://dev.to/adamghill/so-you-want-to-make-a-podcast-242c details our process and shows some of the behind-the-scenes work that goes into every episode. 😅

nanorepublica, to django
@nanorepublica@indiehackers.social avatar

Hey folks,

I have availability for a new client. I specialise in 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)

_chrismay,
@_chrismay@fosstodon.org avatar

@nanorepublica I wonder if @jong0uld might have any leads for you.

mblayman, to django
@mblayman@mastodon.social avatar

🚀 On this #Django Riffs episode, we dig into deployment and some things to consider before making a Django site live on the internet. https://djangoriffs.com/episodes/go-live-deployment

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