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

Update Django documentation #2279

Open
Frzk opened this issue Sep 15, 2023 · 3 comments
Open

Update Django documentation #2279

Frzk opened this issue Sep 15, 2023 · 3 comments

Comments

@Frzk
Copy link
Contributor

Frzk commented Sep 15, 2023

It seems we still advise to use dj-static in the "Serving Static Files" section (https://doc.scalingo.com/languages/python/django/start#static-file-serving)
dj-static is deprecated, so we should update this section and remove it.

@ksol
Copy link
Contributor

ksol commented Dec 15, 2023

Indeed. A customer just told me that "whitenoise" is the preferred option, and it works with wsgi and asgi apps

@Frzk
Copy link
Contributor Author

Frzk commented Feb 7, 2024

We also had customer that made a PR with dj-static, which has been merged.
Maybe it's still popular in the ecosystem?

Consequently, I suggest to:

  • Switch to whitenoise, since it seems to be the state-of-the-art nowadays.
  • Also keep dj-static, with a warning (and maybe explaining how to switch from dj-static to whitenoise.
  • Add a section about Static: https://pypi.org/project/static/

@ksol
Copy link
Contributor

ksol commented Feb 7, 2024

I'm not familiar at all with the state of the python/django ecosystem, but dj-static has been archived since 2021, so personally I would have removed anything related to it except a disclaimer/warning specifying that whitenoise is the de-facto option and dj-static should not be considered.

Then again, that's not a really informed stance

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants