Ticket #7736: 00-modpython-fix.diff

File 00-modpython-fix.diff, 561 bytes (added by Petr Marhoun <petr.marhoun@…>, 7 years ago)
  • django/core/handlers/modpython.py

    === modified file 'django/core/handlers/modpython.py'
     
    149149        # that use settings now can work
    150150        from django.conf import settings
    151151
     152        # Load all applications.
     153        from django.db.models import get_apps
     154        get_apps()
     155
    152156        # if we need to set up middleware, now that settings works we can do it now.
    153157        if self._request_middleware is None:
    154158            self.load_middleware()
Back to Top