PKG-INFO 2.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. Metadata-Version: 1.0
  2. Name: django-debug-panel
  3. Version: 0.8.3
  4. Summary: django-debug-toolbar in WebKit DevTools. Works fine with background Ajax requests and non-HTML responses
  5. Home-page: https://github.com/recamshak/django-debug-panel
  6. Author: Joël Billaud
  7. Author-email: jbillaud@gmail.com
  8. License: BSD
  9. Description: ==================
  10. Django Debug Panel
  11. ==================
  12. Django Debug Toolbar inside WebKit DevTools. Works fine with background AJAX requests and non-HTML responses.
  13. Great for single-page applications and other AJAX intensive web applications.
  14. Installation
  15. ============
  16. #. Install and configure `Django Debug Toolbar <https://github.com/django-debug-toolbar/django-debug-toolbar>`_
  17. #. Install Django Debug Panel:
  18. .. code-block:: bash
  19. pip install django-debug-panel
  20. #. Add ``debug_panel`` to your ``INSTALLED_APPS`` setting:
  21. .. code-block:: python
  22. INSTALLED_APPS = (
  23. # ...
  24. 'debug_panel',
  25. )
  26. #. Replace the Django Debug Toolbar middleware with the Django Debug Panel one. Replace:
  27. .. code-block:: python
  28. MIDDLEWARE_CLASSES = (
  29. ...
  30. 'debug_toolbar.middleware.DebugToolbarMiddleware',
  31. ...
  32. )
  33. with:
  34. .. code-block:: python
  35. MIDDLEWARE_CLASSES = (
  36. ...
  37. 'debug_panel.middleware.DebugPanelMiddleware',
  38. ...
  39. )
  40. #. (Optional) Configure your cache.
  41. All the debug data of a request are stored into the cache backend ``debug-panel``
  42. if available. Otherwise, the ``default`` backend is used, and finally if no caches are
  43. defined it will fallback to a local memory cache.
  44. You might want to configure the ``debug-panel`` cache in your ``settings``:
  45. .. code-block:: python
  46. CACHES = {
  47. 'default': {
  48. 'BACKEND': 'django.core.cache.backends.memcached.MemcachedCache',
  49. 'LOCATION': '127.0.0.1:11211',
  50. },
  51. # this cache backend will be used by django-debug-panel
  52. 'debug-panel': {
  53. 'BACKEND': 'django.core.cache.backends.filebased.FileBasedCache',
  54. 'LOCATION': '/var/tmp/debug-panel-cache',
  55. 'OPTIONS': {
  56. 'MAX_ENTRIES': 200
  57. }
  58. }
  59. }
  60. #. Install the Chrome extension `Django Debug Panel <https://chrome.google.com/webstore/detail/django-debug-panel/nbiajhhibgfgkjegbnflpdccejocmbbn>`_
  61. Platform: UNKNOWN