--
Ticket URL: <https://code.djangoproject.com/ticket/17101>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
* stage: Unreviewed => Accepted
Comment:
A couple quick thoughts to attach to this idea:
The solution should work well with automated deployment workflows, I can't
see why a management command would be limiting for this in any way - and
django-secure is already well factored to allow the checks to be used
outside of the management command context. Just mentioning.
It would be nice to support multiple outputs. In addition to the standard
human readable console output, a machine parseable format, and a shiny
HTML grid format.
--
Ticket URL: <https://code.djangoproject.com/ticket/17101#comment:1>
* status: new => assigned
* needs_better_patch: 0 => 1
* has_patch: 0 => 1
* version: 1.3 => master
* owner: nobody => timgraham
Comment:
I'm working on this as part of [https://github.com/django/django/pull/3128
integrating django-secure].
I've implemented the ability to register "deployment checks" by adding
`deploy=True` to `register()`, e.g. `@register("tag_name", deploy=True)`.
These checks are only run if you pass the `--deploy` flag to `check`. So
in development you can run `manage.py check --deploy
--settings=settings_prod` to check your production settings file. Running
these checks automatically if `DEBUG` is `False` would likely give them
better visibility, but I don't see an easy way of disabling them when
testing if we did that.
[https://groups.google.com/d/topic/django-
developers/t8ybImtdnpM/discussion django-developers thread].
--
Ticket URL: <https://code.djangoproject.com/ticket/17101#comment:2>
* needs_better_patch: 1 => 0
--
Ticket URL: <https://code.djangoproject.com/ticket/17101#comment:3>
* status: assigned => closed
* resolution: => fixed
Comment:
In [changeset:"52ef6a47269a455113d95992f868939131f9c10c"]:
{{{
#!CommitTicketReference repository=""
revision="52ef6a47269a455113d95992f868939131f9c10c"
Fixed #17101 -- Integrated django-secure and added check --deploy option
Thanks Carl Meyer for django-secure and for reviewing.
Thanks also to Zach Borboa, Erik Romijn, Collin Anderson, and
Jorge Carleitao for reviews.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/17101#comment:4>