#22109: clarify difference between relative and absolute STATIC_URL --------------------------------------+------------------------------- Reporter: cjerdonek | Owner: nobody Type: Cleanup/optimization | Status: new Component: Documentation | Version: 1.6 Severity: Normal | Keywords: static_url,static Triage Stage: Unreviewed | Has patch: 0 Easy pickings: 1 | UI/UX: 0 --------------------------------------+------------------------------- It seems like there is a qualitative difference in the behavior of `STATIC_URL` that is worth adding to [https://docs.djangoproject.com/en/dev/ref/settings/#static-url its documentation] -- depending on whether the URL is absolute vs relative. Specifically, the documentation currently only mentions how to //refer// to static assets (i.e. by prepending `STATIC_URL`). But it doesn't mention that when `STATIC_URL` is relative, Django will use this setting to find and serve the file (using also the settings `STATICFILES_DIRS` and `STATIC_ROOT`, for example).
-- Ticket URL: <https://code.djangoproject.com/ticket/22109> Django <https://code.djangoproject.com/> The Web framework for perfectionists with deadlines. -- You received this message because you are subscribed to the Google Groups "Django updates" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-updates+unsubscr...@googlegroups.com. To post to this group, send email to django-updates@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/django-updates/052.7d200f8dd6b87be44af8b03ed8b7671d%40djangoproject.com. For more options, visit https://groups.google.com/groups/opt_out.