-
Notifications
You must be signed in to change notification settings - Fork 19
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
Static media url formatting #2
Comments
@randlet Thanks about this issue, so how can we get this package ? regular install has this problem |
You will either need to fork the repo and make the change yourself, or it looks like you could install the version here: hcharley@c63de97:
should do it. |
I actually think it's better to resolve the URL using the Django's helpers since its encapsulate the behavior instead of directly use the STATIC_URL. I'll make a pull request of the code ASAP. |
Currently the static media urls for ColorPickerWidget are formatted like:
However, according to the Django docs (https://docs.djangoproject.com/en/dev/ref/settings/#static-url) STATIC_URL must end in a slash which means you end up with urls like
/static//paintstore/css/colorpicker.css
which 404's.Changing the format string from
"%s/%s"
to"%s%s"
solved the problem for me.The text was updated successfully, but these errors were encountered: