collectstatic should not symlink files that are already symlinked
For whatever reason, collectstatic re-symlinks files that are already symlink. If the symlink already exists, it should skip and move on to the next. This can become tiresome during deployments that have hundreds of static files.
milestone: |
→ 1.3
|
Triage Stage: |
Unreviewed → Accepted
|
Component: |
Contrib apps → django.contrib.staticfiles
|
Owner: |
changed from nobody to Jannis Leidel
|
Status: |
new → assigned
|
Resolution: |
→ fixed
|
Status: |
assigned → closed
|
Yeah, that seems like a good idea, although we probably want to make sure that the existing symlink points to the wanted source file (e.g. with os.path.exists and/or os.path.realpath).