Whoops. I just pushed a fix for that bug. However, you still shouldn't be using that middleware. If you're going to use an SSL middleware, use django's ( https://docs.djangoproject.com/en/1.10/ref/middleware/#module-django.middleware.security). However, my recommendation is to handle the redirect in the frontend server (nginx, apache, etc) instead.
On Thu, Oct 13, 2016 at 12:55 AM, Akhlaq Rao <[email protected]> wrote: > If it's deprecated then how do we enable SSL now? when I enable it I get > the following error: > > unhandled exception in thread started by <function > check_errors.<locals>.wrapper at 0x10ff97950> > Traceback (most recent call last): > File "/Users/kashfey/Documents/Kash/Development/Webservice/ > mezzanine/couture92/lib/python3.5/site-packages/django/utils/autoreload.py", > line 226, in wrapper > fn(*args, **kwargs) > File "/Users/kashfey/Documents/Kash/Development/Webservice/ > mezzanine/couture92/lib/python3.5/site-packages/mezzanine/core/management/commands/runserver.py", > line 163, in inner_run > super(Command, self).inner_run(*args, **kwargs) > File "/Users/kashfey/Documents/Kash/Development/Webservice/ > mezzanine/couture92/lib/python3.5/site-packages/django/core/management/commands/runserver.py", > line 142, in inner_run > handler = self.get_handler(*args, **options) > File "/Users/kashfey/Documents/Kash/Development/Webservice/ > mezzanine/couture92/lib/python3.5/site-packages/mezzanine/core/management/commands/runserver.py", > line 166, in get_handler > handler = super(Command, self).get_handler(*args, **options) > File "/Users/kashfey/Documents/Kash/Development/Webservice/ > mezzanine/couture92/lib/python3.5/site-packages/ > django/contrib/staticfiles/management/commands/runserver.py", line 27, in > get_handler > handler = super(Command, self).get_handler(*args, **options) > File "/Users/kashfey/Documents/Kash/Development/Webservice/ > mezzanine/couture92/lib/python3.5/site-packages/django/core/management/commands/runserver.py", > line 64, in get_handler > return get_internal_wsgi_application() > File "/Users/kashfey/Documents/Kash/Development/Webservice/ > mezzanine/couture92/lib/python3.5/site-packages/ > django/core/servers/basehttp.py", line 46, in > get_internal_wsgi_application > return get_wsgi_application() > File "/Users/kashfey/Documents/Kash/Development/Webservice/ > mezzanine/couture92/lib/python3.5/site-packages/django/core/wsgi.py", > line 14, in get_wsgi_application > return WSGIHandler() > File "/Users/kashfey/Documents/Kash/Development/Webservice/ > mezzanine/couture92/lib/python3.5/site-packages/django/core/handlers/wsgi.py", > line 153, in __init__ > self.load_middleware() > File "/Users/kashfey/Documents/Kash/Development/Webservice/ > mezzanine/couture92/lib/python3.5/site-packages/django/core/handlers/base.py", > line 58, in load_middleware > mw_instance = mw_class() > TypeError: __init__() missing 1 required positional argument: > 'get_response' > > -- > You received this message because you are subscribed to the Google Groups > "Mezzanine Users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "Mezzanine Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
