We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
https://github.com/Rhumbix/django-request-logging/blob/master/request_logging/middleware.py#L5
The import should be reversed to avoid a deprecation warning with Django 1.11, it should read:
try: # Django 2.x from django.urls import Resolver404 except ImportError: # Django 1.x from django.core.urlresolvers import Resolver404
Probably both try/except blocks could be merged.
The text was updated successfully, but these errors were encountered:
Awesome, do you mind combining the two import checks?
Sorry, something went wrong.
Fix deprecation warning with Django 1.10 and 1.11
b99223b
Fixes Rhumbix#62
4cdc317
No branches or pull requests
https://github.com/Rhumbix/django-request-logging/blob/master/request_logging/middleware.py#L5
The import should be reversed to avoid a deprecation warning with Django 1.11, it should read:
Probably both try/except blocks could be merged.
The text was updated successfully, but these errors were encountered: