Skip to content
This repository was archived by the owner on Mar 13, 2024. It is now read-only.
This repository was archived by the owner on Mar 13, 2024. It is now read-only.

Can't run server, getting an error SSLifyMiddleware() takes no arguments #41

@freemansion

Description

@freemansion

Problem: can't run local server.
Command python manage.py runserver fails with following error:

...
mw_instance = middleware(handler)
TypeError: SSLifyMiddleware() takes no arguments

I've installed django-sslify using pipenv install django-sslify command.
Current requrements.txt contents below:

Django==2.0.7
django-sslify==0.2.7
pytz==2018.5

Then made following changes at my settings.py:

SECURE_SSL_REDIRECT = True

INSTALLED_APPS = [
    'sslify',
     '...',
 ]

MIDDLEWARE = [
      'sslify.middleware.SSLifyMiddleware',
     '...',
 ]

Probably I missed some small detail. Will appreciate if someone point where to.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions