-
Notifications
You must be signed in to change notification settings - Fork 42
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
Django 3.2 breaks django-multisite: The SITE_ID setting must be an integer #76
Comments
Yep, and if you use SITE_ID = int(SiteID(default=1)) instead, than you'll get: env/lib/python3.9/site-packages/multisite/middleware.py", line 46, in init |
Hi, i didn't tried yet but there is a fix for that issue in parent project : shestera@1ec217d |
Hello! It seems to eliminate problem with SITE_ID, but another one comes, - 404 for every site. |
Ah you found my fix! If that fix doesn't work for you (@erimeilis) or you'd rather stick to the main releases, you can also use a django setting which I'd forgotten about when patching this new check. The django setting |
I undertstand using |
I found that doing |
mellertson It works for me, thank you)) |
After upgrading to Django 3.2 and using django-multisite 1.9.0 the development django runserver doesn't pass a new test:
ERRORS:
?: (sites.E101) The SITE_ID setting must be an integer
The text was updated successfully, but these errors were encountered: