Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prep for V2 #51

Open
BrandonShar opened this issue Oct 30, 2024 · 9 comments
Open

Prep for V2 #51

BrandonShar opened this issue Oct 30, 2024 · 9 comments
Labels
help wanted Extra attention is needed

Comments

@BrandonShar
Copy link
Collaborator

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!

@BrandonShar BrandonShar added the help wanted Extra attention is needed label Oct 30, 2024
@eddyojb88
Copy link

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
Copy link

sopelj commented Nov 4, 2024

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
Copy link
Collaborator Author

@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
Copy link
Contributor

pmdevita commented Nov 4, 2024

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

@eddyojb88
Copy link

@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

  1. 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
Copy link

A diagram like this helps

@sopelj
Copy link

sopelj commented Nov 4, 2024

@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
Copy link

sopelj commented Nov 4, 2024

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.

@keinstn
Copy link
Contributor

keinstn commented Nov 21, 2024

Hi, I've just started using Inertia and Django, but I have a lot of experience on Python. I'd be happy if I could help you something!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

5 participants