#16161: If extra static files are added into STATIC_ROOT, they are transformed to symlinks in the next run of ``collectstatic -l`` ------------------------------------+------------------------------------- Reporter: gnotaras | Owner: aaugustin Type: Bug | Status: new Milestone: | Component: contrib.staticfiles Version: 1.3 | Severity: Normal Resolution: | Keywords: Triage Stage: Accepted | Has patch: 0 Needs documentation: 0 | Needs tests: 0 Patch needs improvement: 0 | Easy pickings: 0 ------------------------------------+------------------------------------- Changes (by aaugustin):
* owner: nobody => aaugustin Old description: > Here are the related settings: > > {{{ > MEDIA_ROOT = os.path.abspath(os.path.join(os.path.dirname(__file__), > 'media', '')).replace('\\','/') > MEDIA_URL = '/media/' > STATIC_ROOT = os.path.join(MEDIA_ROOT, 'site') > STATIC_URL = MEDIA_URL + 'site/' > ADMIN_MEDIA_PREFIX = STATIC_URL + 'admin/' > STATICFILES_DIRS = () > STATICFILES_FINDERS = ( > 'django.contrib.staticfiles.finders.FileSystemFinder', > 'django.contrib.staticfiles.finders.AppDirectoriesFinder', > # 'django.contrib.staticfiles.finders.DefaultStorageFinder', > 'compressor.finders.CompressorFinder', > ) > }}} > > How to re-produce: > > 1. Run : {{{python manage.py collectstatic -l --noinput}}} > 1. Put some extra static files in STATIC_ROOT > 1. Re-run {{{python manage.py collectstatic -l --noinput}}} > 1. The extra files have been replaced by symlinks pointing to themselves. New description: Here are the related settings: {{{ MEDIA_ROOT = os.path.abspath(os.path.join(os.path.dirname(__file__), 'media', '')).replace('\\','/') MEDIA_URL = '/media/' STATIC_ROOT = os.path.join(MEDIA_ROOT, 'site') STATIC_URL = MEDIA_URL + 'site/' ADMIN_MEDIA_PREFIX = STATIC_URL + 'admin/' STATICFILES_DIRS = () STATICFILES_FINDERS = ( 'django.contrib.staticfiles.finders.FileSystemFinder', 'django.contrib.staticfiles.finders.AppDirectoriesFinder', # 'django.contrib.staticfiles.finders.DefaultStorageFinder', 'compressor.finders.CompressorFinder', ) }}} How to re-produce: 1. Run : {{{python manage.py collectstatic -l --noinput}}} 1. Put some extra static files in STATIC_ROOT 1. Re-run {{{python manage.py collectstatic -l --noinput}}} 1. The extra files have been replaced by symlinks pointing to themselves. -- Comment: Thanks Luke for making the decision. I'll work on a patch. -- Ticket URL: <https://code.djangoproject.com/ticket/16161#comment:12> 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 post to this group, send email to django-updates@googlegroups.com. To unsubscribe from this group, send email to django-updates+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-updates?hl=en.