inertiajs / inertia-django

The Django adapter for Inertia.js
MIT License
325 stars 32 forks source link

Prep for V2 #51

Open BrandonShar opened 2 weeks ago

BrandonShar commented 2 weeks ago

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!

eddyojb88 commented 1 week 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!

sopelj commented 1 week ago

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.

BrandonShar commented 1 week ago

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

pmdevita commented 1 week ago

I use Django professionally and the Inertia integration in a few hobby projects, I'd be willing to help out!

eddyojb88 commented 1 week ago

@BrandonShar

Some thoughts:

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)

eddyojb88 commented 1 week ago

A diagram like this helps

sopelj commented 1 week ago

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

sopelj commented 1 week ago

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.