Open BrandonShar opened 2 weeks ago
I want to leave a comment to reflect my sense of excitement about a v2! I'm not an appropriate fit as I have just started using inertia and also found it a struggle to set it up, resorting to django-breeze to smooth over the process. Hoping this will be addressed in v2!
Hi. I am relatively new to Inertia (I only have one small project using it), but I do have lots of experience with Django. If there's anything I can do to help, I'd be happy to.
@eddyojb88 thank you that's great feedback! I also maintain Inertia Rails and we've felt that same onboarding pain over there. We got luckily in Rails and a top notch company helped build an installer, but that doesn't mean we can't improve the Django situation! Was there anything in particular that tripped you up or was it just too confusing in general?
@sopelj Thanks for the reply! Lots of experience with Django is exactly what would be most helpful. If you could potentially help me test out alpha/beta releases and sanity check Django standards, that would be amazing. I'm not a native python developer, so some of my Django code may not be as expected 😄
I use Django professionally and the Inertia integration in a few hobby projects, I'd be willing to help out!
@BrandonShar
Some thoughts:
"At its core, Inertia is essentially a client-side routing library"
"Inertia has no client-side routing, nor does it require an API. Simply build controllers and page views like you've always done! Inertia works great with any backend framework, but it's fine-tuned for Laravel."
I find the interaction between the Django server, Inertia, Vite and React confusing. I have struggled for hours to understand what is processing and serving what, which didn't help when debugging when I went to setup. I am having to try it out during my evenings so probably a bit tired and dumb but in terms of helping the unitiated, perhaps a diagram would help here
3) I think an opinionated hello-world quick setup is super valuable to on-ramp a new user and let them break it to learn quickly (something like a Django-Breeze)
@sopelj Thanks for the reply! Lots of experience with Django is exactly what would be most helpful. If you could potentially help me test out alpha/beta releases and sanity check Django standards, that would be amazing. I'm not a native python developer, so some of my Django code may not be as expected 😄
Definitely, I'd love to. Just let me know if you have some branches to check or if you want me to check the repo in general. If it's in general, I could open some issues or maybe start some discussions for suggestions (which I'd be happy to help implement if desired).
I agree that django-breeze
does help one get started. It might be nice, although, I don't like how it includes views you can't override. It would be nice if it had class based views that one could easily extend and add themselves. Especially for form views. It would be awesome to have something built-in that one could simply extend. Something like was mentioned in #30
It is also not super intuitive to integrate Django's URL patterns with Inertia. It would be good if we had an example with that too. Especially for localized URLs. I have not yet found a good way of implementing that. Something like django-js-reverse, but I don't think that handles localization.
Hi folks! I'm beginning the process of squaring Inertia Django up to get ready for the Inertia V2 improvements that we're going to need, but it's now been several years since I've worked on a Django project professionally. If there's anyone in the community who is using Inertia Django actively and would be interested in collaborating with me on the V2 upgrade, please comment here or reach out!