Skip to content
This repository has been archived by the owner on Aug 18, 2022. It is now read-only.

Use idiomatic Django to reference static files #6

Merged
merged 1 commit into from May 10, 2022
Merged

Use idiomatic Django to reference static files #6

merged 1 commit into from May 10, 2022

Conversation

mujahidfa
Copy link
Contributor

@mujahidfa mujahidfa commented May 7, 2022

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!

Use Django's static template tag to reference the JS and CSS files.
@girardinsamuel
Copy link
Owner

Thanks for those improvements !

@girardinsamuel girardinsamuel merged commit f84c111 into girardinsamuel:main May 10, 2022
@mujahidfa mujahidfa deleted the patch-1 branch May 12, 2022 08:41
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants