girardinsamuel / django-inertia

Django server-side adapter for Inertia.js
MIT License
14 stars 2 forks source link

Use idiomatic Django to reference static files #6

Closed mujahidfa closed 2 years ago

mujahidfa commented 2 years ago

Hi @girardinsamuel!

Just thought to improve the docs a bit by using Django's static template tag to reference the generated JS and CSS files in the template. I believe this is more idiomatic Django over using using {{ STATIC_URL }} directly in the template (unless there's another reason that I'm not aware of for it).

Reference: https://docs.djangoproject.com/en/4.0/howto/static-files/#configuring-static-files

Great work with this library btw 👍👍

Thanks!

girardinsamuel commented 2 years ago

Thanks for those improvements !