jscholes,
@jscholes@dragonscave.space avatar

Searched the internet for tips on using with , hoping specifically for guidance on incorporating Svelte components into Django templates. The first result is an article telling me how to ignore Django templates completely, move all development to in the form of an SPA, and turn my into a REST . Turns out, things can depress you even when they're not surprising.

zersiax,
@zersiax@cupoftea.social avatar

@jscholes yeah, I was looking into this as well the other month. Seems like these days you either do that, or go with one of the framework-specific approaches like Turbo on Rails, liveView on Phoenix etc. not sure if Python has an equivalent yet

jscholes,
@jscholes@dragonscave.space avatar

@zersiax Turbo isn't Rails-specific. It's just a means of asking a server for a segment of HTML instead of an entire page, and some JavaScript to plop it down in the right place. There are ways to achieve that in Django or any other web framework, or you can just return the entire page anyway and Turbo will filter it for the bits it cares about. Either way it's not what I need or want to do.

zersiax,
@zersiax@cupoftea.social avatar

@jscholes ahh. Between terms like Turbo, Hotwire, LiveWire etc. it can be difficult to recall which things are framework-agnostic, sorry about that. But yeah, when I went looking into doing something similar, in my case it was incorporating React into Django I found very similar results. Just Use DRF and Django in API mode and an SPA on top of that. Guess its a sign of the times :(

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