Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MultipleDomainMiddleware #1

Open
masoodazhar opened this issue Oct 25, 2020 · 2 comments
Open

MultipleDomainMiddleware #1

masoodazhar opened this issue Oct 25, 2020 · 2 comments

Comments

@masoodazhar
Copy link

application = get_wsgi_application()
File "E:\Env\python380Env\lib\site-packages\django\core\wsgi.py", line 13, in get_wsgi_application
return WSGIHandler()
File "E:\Env\python380Env\lib\site-packages\django\core\handlers\wsgi.py", line 135, in init
self.load_middleware()
File "E:\Env\python380Env\lib\site-packages\django\core\handlers\base.py", line 37, in load_middleware
mw_instance = middleware(handler)
TypeError: MultipleDomainMiddleware() takes no arguments

getting this error when i apply it for multiple domain in my project

@eracle
Copy link

eracle commented Mar 22, 2022

@masoodazhar Which Django version are you running?

@eracle
Copy link

eracle commented Mar 22, 2022

By looking at this project it seems not compatible with Django versions younger than 1.10.

https://docs.djangoproject.com/en/3.2/topics/http/middleware/#upgrading-pre-django-1-10-style-middleware

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

No branches or pull requests

2 participants