Opened 13 years ago
Last modified 13 years ago
#16161 closed Bug
If extra static files are added into STATIC_ROOT are transformed to symlinks in the next run of ``collectstatic -l`` — at Initial Version
Reported by: | George Notaras | Owned by: | nobody |
---|---|---|---|
Component: | contrib.staticfiles | Version: | 1.3 |
Severity: | Normal | Keywords: | |
Cc: | Triage Stage: | Accepted | |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
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:
- Run :
python manage.py collectstatic -l --noinput
- Put some extra static files in STATIC_ROOT
- Re-run
python manage.py collectstatic -l --noinput
- The extra files have been replaced by symlinks pointing to themselves.
Note:
See TracTickets
for help on using tickets.