#22986: Allow disabling session model database table creation if not used by
session engine
----------------------------------+--------------------------------------
     Reporter:  timo              |                    Owner:  nobody
         Type:  New feature       |                   Status:  closed
    Component:  contrib.sessions  |                  Version:  master
     Severity:  Normal            |               Resolution:  worksforme
     Keywords:                    |             Triage Stage:  Accepted
    Has patch:  1                 |      Needs documentation:  1
  Needs tests:  1                 |  Patch needs improvement:  1
Easy pickings:  0                 |                    UI/UX:  0
----------------------------------+--------------------------------------
Changes (by aaugustin):

 * status:  new => closed
 * resolution:   => worksforme


Comment:

 Since Django 1.7 we have a clean way to prevent the creation of database
 tables, which is the crux of the issue here:

 {{{
 MIGRATION_MODULES = {
     'sessions': None
 }
 }}}

 On one hand, it's a slightly convoluted way to declare that you aren't
 using the Session model. On the other hand, it's a reasonable way to tell
 Django not to run migrations that create the table backing the Session
 model.

--
Ticket URL: <https://code.djangoproject.com/ticket/22986#comment:7>
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 unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/062.b38f08f00440a2fea9d6a6e764701cc0%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to