buildafrica / backend-api

Backend API for Missing Persons Project
https://wecodeafrica.github.io/
2 stars 5 forks source link

Update django-debug-toolbar to 2.0 #118

Open pyup-bot opened 5 years ago

pyup-bot commented 5 years ago

This PR updates django-debug-toolbar from 1.10.1 to 2.0.

Changelog ### 2.0 ``` ---------------- * Updated ``StaticFilesPanel`` to be compatible with Django 3.0. * The ``ProfilingPanel`` is now enabled but inactive by default. * Fixed toggling of table rows in the profiling panel UI. * The ``ProfilingPanel`` no longer skips remaining panels or middlewares. * Improved the installation documentation. * Fixed a possible crash in the template panel. * Added support for psycopg2 ``Composed`` objects. * Changed the Jinja2 tests to use Django's own Jinja2 template backend. * Added instrumentation to queries using server side cursors. * Too many small improvements and cleanups to list them all. **Backwards incompatible changes** ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * Removed support for Python 2. * Removed support for Django's deprecated ``MIDDLEWARE_CLASSES`` setting. * Restructured ``Panel`` to execute more like the new-style Django MIDDLEWARE. The ``Panel.__init__()`` method is now passed ``get_response`` as the first positional argument. The ``Panel.process_request()`` method must now always return a response. Usually this is the response returned by ``get_response()`` but the panel may also return a different response as is the case in the ``RedirectsPanel``. Third party panels must adjust to this new architecture. ``Panel.process_response()`` and ``Panel.process_view()`` have been removed as a result of this change. The deprecated API, ``debug_toolbar.panels.DebugPanel``, has been removed. Third party panels should use ``debug_toolbar.panels.Panel`` instead. The following deprecated settings have been removed: * ``HIDDEN_STACKTRACE_MODULES`` * ``HIDE_DJANGO_SQL`` * ``INTERCEPT_REDIRECTS`` * ``RESULTS_STORE_SIZE`` * ``ROOT_TAG_ATTRS`` * ``TAG`` ``` ### 1.11 ``` ----------------- * Use ``defer`` on all ``<script>`` tags to avoid blocking HTML parsing, removed inline JavaScript. * Stop inlining images in CSS to avoid Content Security Policy errors altogether. * Reformatted the code using `black <https://github.com/ambv/black>`__. * Added the Django mail panel to the list of third-party panels. * Convert system check errors to warnings to accomodate exotic configurations. * Fixed a crash when explaining raw querysets. * Fixed an obscure unicode error with binary data fields. * Added MariaDB and Python 3.7 builds to the CI. ```
Links - PyPI: https://pypi.org/project/django-debug-toolbar - Changelog: https://pyup.io/changelogs/django-debug-toolbar/ - Repo: https://github.com/jazzband/django-debug-toolbar