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

Handle SCRIPT_NAME in Django Static URLs #122

Open
archie-ai-code-explain-pr-review bot opened this issue Jul 13, 2024 · 0 comments
Open

Handle SCRIPT_NAME in Django Static URLs #122

archie-ai-code-explain-pr-review bot opened this issue Jul 13, 2024 · 0 comments

Comments

@archie-ai-code-explain-pr-review
  • The default Django {% static '...' %} tag does not properly handle the SCRIPT_NAME WSGI parameter when running on a sub-path.
  • This results in incorrect static URLs that do not prepend the SCRIPT_NAME prefix.
  • The proposed solution is to update the render() method of the static tag to prepend the SCRIPT_NAME to the static URL.
  • Additionally, the FileSystemStorage and StaticFilesStorage classes should also be updated to handle the SCRIPT_NAME parameter correctly.
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

0 participants