* component: Documentation => contrib.staticfiles
* stage: Unreviewed => Accepted
Comment:
Documentation improvements are welcome.
> Another thing that could be maybe be added is a deployment check, to
make sure that both `default` and `staticfiles` storages are present in
the setting.
I agree that we could add a check for a `staticfiles` storage, e.g.
- `staticfiles.E005`: `You must define a 'staticfiles' storage in your
:setting:``STORAGES`` setting.` in the
`django.contrib.staticfiles.checks`.
However, as far as I'm aware, you don't have to use the `default` storage
so a new system check might be an issue for some projects.
--
Ticket URL: <https://code.djangoproject.com/ticket/34712#comment:2>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
* owner: nobody => Bruno Alla
* status: new => assigned
--
Ticket URL: <https://code.djangoproject.com/ticket/34712#comment:3>
* has_patch: 0 => 1
--
Ticket URL: <https://code.djangoproject.com/ticket/34712#comment:4>
* needs_better_patch: 0 => 1
--
Ticket URL: <https://code.djangoproject.com/ticket/34712#comment:5>
Comment (by Mariusz Felisiak <felisiak.mariusz@…>):
In [changeset:"86561844ce66cda3e6a8c22d4ace4c2d1bc1f2e7" 86561844]:
{{{
#!CommitTicketReference repository=""
revision="86561844ce66cda3e6a8c22d4ace4c2d1bc1f2e7"
Refs #34712 -- Doc'd that defining STORAGES overrides the default
configuration.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/34712#comment:6>
Comment (by Mariusz Felisiak <felisiak.mariusz@…>):
In [changeset:"12ebd9a1ac8b1de34a2d4615fa830d132f6e56b9" 12ebd9a1]:
{{{
#!CommitTicketReference repository=""
revision="12ebd9a1ac8b1de34a2d4615fa830d132f6e56b9"
[4.2.x] Refs #34712 -- Doc'd that defining STORAGES overrides the default
configuration.
Backport of 86561844ce66cda3e6a8c22d4ace4c2d1bc1f2e7 from main
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/34712#comment:7>
Comment (by Mariusz Felisiak <felisiak.mariusz@…>):
In [changeset:"4c4536f7442a3ed1218f5b1dc791295d65c24f4c" 4c4536f7]:
{{{
#!CommitTicketReference repository=""
revision="4c4536f7442a3ed1218f5b1dc791295d65c24f4c"
Refs #34712 -- Added system check for staticfiles storage in STORAGES
setting.
Co-authored-by: Mariusz Felisiak <felisiak...@gmail.com>
Co-authored-by: Natalia Bidart <124304+...@users.noreply.github.com>
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/34712#comment:8>
* status: assigned => closed
* resolution: => fixed
--
Ticket URL: <https://code.djangoproject.com/ticket/34712#comment:9>