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

Django. Bug with relative STATIC_URL[bug] #1098

Open
djigit0s opened this issue May 15, 2024 · 0 comments
Open

Django. Bug with relative STATIC_URL[bug] #1098

djigit0s opened this issue May 15, 2024 · 0 comments
Labels

Comments

@djigit0s
Copy link

Describe the bug
On django 5 version STATIC_URL is set to relative by default STATIC_URL = 'static/' on startup django checks it and changes it to an absolute path

django/conf/init.py (95)

if name in {"MEDIA_URL", "STATIC_URL"} and val is not None:
    val = self._add_script_prefix(val)

but dynaconf ignores this change and loads the data from the settings.py file, causing confusion. I've been looking for a bug for a long time (
2024-05-15_175918

@djigit0s djigit0s added the bug label May 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant