[Django] #27108: collectstatic lies when destination doesn't exist

18 views
Skip to first unread message

Django

unread,
Aug 22, 2016, 8:32:24 PM8/22/16
to django-...@googlegroups.com
#27108: collectstatic lies when destination doesn't exist
-------------------------------------+--------------------
Reporter: dotysan | Owner: nobody
Type: Bug | Status: new
Component: contrib.staticfiles | Version: master
Severity: Normal | Keywords:
Triage Stage: Unreviewed | Has patch: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+--------------------
`./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 annoying the BOFH
about "existing" files that actually don't exist.

--
Ticket URL: <https://code.djangoproject.com/ticket/27108>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

Django

unread,
Aug 22, 2016, 8:56:15 PM8/22/16
to django-...@googlegroups.com
#27108: Remove collectstatic warning about overwriting existing files when
STATIC_ROOT directory doesn't exist
--------------------------------------+------------------------------------
Reporter: dotysan | Owner: nobody
Type: Cleanup/optimization | Status: new
Component: contrib.staticfiles | Version: master
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0

Easy pickings: 0 | UI/UX: 0
--------------------------------------+------------------------------------
Changes (by timgraham):

* needs_better_patch: => 0
* needs_tests: => 0
* needs_docs: => 0
* type: Bug => Cleanup/optimization
* stage: Unreviewed => Accepted


Old description:

> `./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 annoying the
> BOFH about "existing" files that actually don't exist.

New description:

`./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.

--

Comment:

Seems reasonable.

--
Ticket URL: <https://code.djangoproject.com/ticket/27108#comment:1>

Django

unread,
Aug 25, 2016, 3:38:22 PM8/25/16
to django-...@googlegroups.com
#27108: Remove collectstatic warning about overwriting existing files when
STATIC_ROOT directory doesn't exist
-------------------------------------+-------------------------------------
Reporter: dotysan | Owner:
Type: | francoisfreitag
Cleanup/optimization | Status: assigned
Component: contrib.staticfiles | Version: master

Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0

Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by francoisfreitag):

* owner: nobody => francoisfreitag
* status: new => assigned
* has_patch: 0 => 1


--
Ticket URL: <https://code.djangoproject.com/ticket/27108#comment:2>

Django

unread,
Aug 26, 2016, 4:13:52 PM8/26/16
to django-...@googlegroups.com
#27108: Remove collectstatic warning about overwriting existing files when
STATIC_ROOT directory doesn't exist
-------------------------------------+-------------------------------------
Reporter: dotysan | Owner:
Type: | francoisfreitag
Cleanup/optimization | Status: assigned
Component: contrib.staticfiles | Version: master

Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 1

Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by timgraham):

* needs_better_patch: 0 => 1


--
Ticket URL: <https://code.djangoproject.com/ticket/27108#comment:3>

Django

unread,
Aug 26, 2016, 9:09:01 PM8/26/16
to django-...@googlegroups.com
#27108: Remove collectstatic warning about overwriting existing files when
STATIC_ROOT directory doesn't exist
-------------------------------------+-------------------------------------
Reporter: dotysan | Owner:
Type: | francoisfreitag
Cleanup/optimization | Status: assigned
Component: contrib.staticfiles | Version: master

Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0

Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by francoisfreitag):

* needs_better_patch: 1 => 0


--
Ticket URL: <https://code.djangoproject.com/ticket/27108#comment:4>

Django

unread,
Sep 2, 2016, 2:55:19 PM9/2/16
to django-...@googlegroups.com
#27108: Remove collectstatic warning about overwriting existing files when
STATIC_ROOT directory doesn't exist
-------------------------------------+-------------------------------------
Reporter: dotysan | Owner:
Type: | francoisfreitag
Cleanup/optimization | Status: closed
Component: contrib.staticfiles | Version: master
Severity: Normal | Resolution: fixed

Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0

Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Tim Graham <timograham@…>):

* status: assigned => closed
* resolution: => fixed


Comment:

In [changeset:"8c054ed71d579aef53e074fcdaea56f110f1764e" 8c054ed]:
{{{
#!CommitTicketReference repository=""
revision="8c054ed71d579aef53e074fcdaea56f110f1764e"
Fixed #27108 -- Displayed collectstatic's delete/overwrite warnings only
if some files exist in STATIC_ROOT.
}}}

--
Ticket URL: <https://code.djangoproject.com/ticket/27108#comment:5>

Reply all
Reply to author
Forward
0 new messages