Opened 5 years ago

Closed 5 years ago

#27108 closed Cleanup/optimization (fixed)

Remove collectstatic warning about overwriting existing files when STATIC_ROOT directory doesn't exist

Reported by: Curtis Doty Owned by: François Freitag
Component: contrib.staticfiles Version: dev
Severity: Normal Keywords:
Cc: Triage Stage: Accepted
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description (last modified by Tim Graham)

./manage.py collectstatic prompts for user input to confirm overwriting the destination files...even when the static directory doesn't even exist! That's silly. Just create them in this case...without warning about "existing" files that actually don't exist.

Change History (5)

comment:1 Changed 5 years ago by Tim Graham

Description: modified (diff)
Summary: collectstatic lies when destination doesn't existRemove collectstatic warning about overwriting existing files when STATIC_ROOT directory doesn't exist
Triage Stage: UnreviewedAccepted
Type: BugCleanup/optimization

Seems reasonable.

comment:2 Changed 5 years ago by François Freitag

Has patch: set
Owner: changed from nobody to François Freitag
Status: newassigned

comment:3 Changed 5 years ago by Tim Graham

Patch needs improvement: set

comment:4 Changed 5 years ago by François Freitag

Patch needs improvement: unset

comment:5 Changed 5 years ago by Tim Graham <timograham@…>

Resolution: fixed
Status: assignedclosed

In 8c054ed:

Fixed #27108 -- Displayed collectstatic's delete/overwrite warnings only if some files exist in STATIC_ROOT.

Note: See TracTickets for help on using tickets.
Back to Top