Skip to content
This repository has been 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

Open
freemansion opened this issue Jul 23, 2018 · 3 comments

Comments

@freemansion
Copy link

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.

@manelclos
Copy link
Collaborator

Hi @freemansion, you probably installed from pip, it might help to look here: #38

@freemansion
Copy link
Author

freemansion commented Jul 23, 2018

Hi @manelclos, thanks for quick reply. I've installed with pipenv, not pip, but reading now #38

UPD: still can't make it work, so currently switched to django-sslserver.

But appeared another question - how django-sslify fits with SSL certificates? Haven't seen anything about this at readme.

@datamafia
Copy link

Just wanted to ping this thread and note that Django 2.1 on Heroku was rather unhappy with this code.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants