Django 2.x compatibility
See original GitHub issueHello there,
It fails on Django 2.x
Traceback (most recent call last):
File "/home/adas/Devel/watchdog_id/watchdog_id/auth_factories/totp/tests/test_views.py", line 29, in test_get_context_data
response = self.client.get(self.url)
File "/home/adas/.virtualenvs/watchdog_id/lib/python3.5/site-packages/django/test/client.py", line 517, in get
response = super().get(path, data=data, secure=secure, **extra)
File "/home/adas/.virtualenvs/watchdog_id/lib/python3.5/site-packages/django/test/client.py", line 332, in get
return self.generic('GET', path, secure=secure, **r)
File "/home/adas/.virtualenvs/watchdog_id/lib/python3.5/site-packages/django/test/client.py", line 404, in generic
return self.request(**r)
File "/home/adas/.virtualenvs/watchdog_id/lib/python3.5/site-packages/django/test/client.py", line 485, in request
raise exc_value
File "/home/adas/.virtualenvs/watchdog_id/lib/python3.5/site-packages/django/core/handlers/exception.py", line 35, in inner
response = get_response(request)
File "/home/adas/.virtualenvs/watchdog_id/lib/python3.5/site-packages/django/core/handlers/base.py", line 128, in _get_response
response = self.process_exception_by_middleware(e, request)
File "/home/adas/.virtualenvs/watchdog_id/lib/python3.5/site-packages/django/core/handlers/base.py", line 126, in _get_response
response = wrapped_callback(request, *callback_args, **callback_kwargs)
File "/usr/lib/python3.5/contextlib.py", line 30, in inner
return func(*args, **kwds)
File "/home/adas/.virtualenvs/watchdog_id/lib/python3.5/site-packages/django/views/generic/base.py", line 69, in view
return self.dispatch(request, *args, **kwargs)
File "/home/adas/Devel/watchdog_id/watchdog_id/auth_factories/totp/views.py", line 36, in dispatch
return super(OTPPasswordCreateView, self).dispatch(request, *args, **kwargs)
File "/home/adas/Devel/watchdog_id/watchdog_id/auth_factories/mixins.py", line 17, in dispatch
return super(UserSessionManageMixin, self).dispatch(request, *args, **kwargs)
File "/home/adas/.virtualenvs/watchdog_id/lib/python3.5/site-packages/braces/views/_access.py", line 98, in dispatch
if not request.user.is_authenticated():
TypeError: 'bool' object is not callable
Django-braces version: 1.11.0
Issue Analytics
- State:
- Created 6 years ago
- Comments:6 (3 by maintainers)
Top Results From Across the Web
Django 2.2 release notes
Python compatibility Django 2.2 supports Python 3.5, 3.6, 3.7, 3.8 (as of 2.2. 8), and 3.9 (as of 2.2. 17).
Read more >python 3.x - Django 3 vs Django 2 - Stack Overflow
1. No Django version is fully compatible with the previous one. In the release notes you can see what has changed. – Willem...
Read more >Removing Python 2.x support from Django for version 2.0
The next release, Django 1.11, will be a long-term support release, and the one after that, Django 2.0, will no longer support Python...
Read more >Compatibility with Django 2.2 - Google Groups
Basically Mezzanine compatibility with Django 2 is limited to 2.0 which is no longer supported. ... although there's some 2.x features I'd like...
Read more >Changelog — Django Compressor 4.1 documentation
... Drop support for Python 2.x and 3.4; Fix compatibility with Jinja 3.x ... Made offline compression avoid compressing the same block multiple...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@kennethlove The branch
2.0
tests runs in all tested Django/Python versions. I have added Django 2.0 to the test mix and included a small test fix in #237. Are those backwards compatibility issues not covered by the tests?@elcolie it isn’t. You’d need to upgrade to 1.12.0 (latest)