question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

DJDT not showing low level caching correctly in Docker

See original GitHub issue

Hi, I working with DJDT for a few months. I figure out the “not showing” issue in docker, but the data inside the cache panel is not showing properly. The inner data, doesnt match the outer data and in the arguments column it shows addresses or something alike.

A proper data: (taken from an online guide) image (From: https://testdriven.io/blog/django-low-level-cache/#cache-backend)

What it shows inside a Docker: ch

BTW: It also shows it like a view cache, but the view is not cached (Its a dynamic view) My Configuration:


DEBUG_TOOLBAR_ENABLED = True
if DEBUG and DEBUG_TOOLBAR_ENABLED:
    INSTALLED_APPS.append('debug_toolbar')
    MIDDLEWARE.insert(0, 'debug_toolbar.middleware.DebugToolbarMiddleware')
    MIDDLEWARE.insert(1, 'django.middleware.cache.UpdateCacheMiddleware')
    MIDDLEWARE.append('django.middleware.cache.FetchFromCacheMiddleware')
    #INTERNAL_IPS.append('127.0.0.1')

    DEBUG_TOOLBAR_CONFIG = {
        'SHOW_TOOLBAR_CALLBACK': lambda request: False if request.is_ajax() else True,
    }

Does anyone have idea how to solve it ? Where to start ?

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:10 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
tim-schillingcommented, Aug 27, 2021

Thanks for the help! There was indeed a bug, but it was unrelated to docker.

0reactions
LiorA1commented, Aug 27, 2021

No problem, I also tried to figure it out. (reach to “_store_call_info”/“get_cache_key” - It took time to set the debugger …)

Read more comments on GitHub >

github_iconTop Results From Across the Web

Cache panel does not update for per-view level caching #718
I'm using the toolbar 1.3 and Django 1.8.2. The toolbar displays fine and the SQL, Time, Headers, Request, Static Files, Templates panels ...
Read more >
Django Debug Toolbar - Read the Docs
Django Debug Toolbar, Release 3.7.0. This is the dotted path to a function used for determining whether the toolbar should show or not....
Read more >
django-debug-toolbar not showing up - Stack Overflow
If you're using Vagrant, make sure that your INTERNAL_IPS is correct. One way to check is in a view, print your request.META['REMOTE_ADDR'] ,...
Read more >
Caching in Django - TestDriven.io
This article first provides an overview of Django's caching framework and then shows how to cache a Django view using both Memcached and ......
Read more >
django-cachalot/Lobby - Gitter
Hi, is it possible to use cachalot as a low-level cache as the standard django cache? I would like to store querysets and...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found