#29796: Report error if the prefix in the STATICFILES_DIRS ends with slash -----------------------------------------------+------------------------ Reporter: pkol | Owner: nobody Type: Uncategorized | Status: new Component: contrib.staticfiles | Version: master Severity: Normal | Keywords: Triage Stage: Unreviewed | Has patch: 1 Needs documentation: 0 | Needs tests: 0 Patch needs improvement: 0 | Easy pickings: 0 UI/UX: 0 | -----------------------------------------------+------------------------ Problem: With following config:
STATICFILES_DIRS=[ ('front/', os.path.join(BASE_DIR, 'front/build')) ] files from 'front/build' are collected by 'manage.py collectstatic' but no served by 'runserver'. The problem is caused by trailing slash in prefix ('front/' instead of 'front'). My first solution was to normalize the prefix, but it was suggested that it's better to report error. (https://github.com/django/django/pull/10441) I'm going to submit new patch soon. -- Ticket URL: <https://code.djangoproject.com/ticket/29796> 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/047.a188f50f4ca6094881d25d064e941ed1%40djangoproject.com. For more options, visit https://groups.google.com/d/optout.