#18978: Move cleanup management command to contrib.sessions
-------------------------------------+-------------------------------------
     Reporter:  rasca                |                    Owner:  rasca
         Type:                       |                   Status:  new
  Cleanup/optimization               |                  Version:  master
    Component:  Core (Management     |               Resolution:
  commands)                          |             Triage Stage:  Accepted
     Severity:  Normal               |      Needs documentation:  1
     Keywords:                       |  Patch needs improvement:  1
    Has patch:  1                    |                    UI/UX:  0
  Needs tests:  1                    |
Easy pickings:  1                    |
-------------------------------------+-------------------------------------

Comment (by ptone):

 Sorry about the confusion on pull requests - it is an area for growth as
 we transition to github.

 I agree about not deprecating cleanup - it can remain as a simple alias
 for now.

 I do think we pull it from the documentation entirely for now (but see
 ramble below)

 Any new features of a future implementation of the cleanup command are
 beyond the scope of this particular ticket, and yes - would require its
 own ticket.  However I can tell you that the approach of using a setting
 is probably a non-starter.  Perhaps allow any app to define a 'cleanup'
 command - and the core cleanup command would use the command discovery
 machinery to find and run each one of them.  However that will take some
 design consideration, as it is an entirely new behavior for management
 commands, and becomes perhaps a bit too implicit/magical.  If this were
 the approach taken, the sessions cleanup - would once again be called
 cleanup - and so perhaps these issues should be coupled. In otherwords,
 make that decision first.

 So to rephrase, cleanup would become a new "special" management command -
 which will simply call the cleanup command in any app, and the current
 sessions cleanup command would be one such example located in
 contrib.sessions.

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

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to