Skip to content

Instantly share code, notes, and snippets.

View bigblind's full-sized avatar

Frederik Creemers bigblind

View GitHub Profile
@greenkey
greenkey / avoid_memoize_during_test.py
Created May 5, 2017 18:29
how to avoid django-memoize during test
# Supposing you're using the django-memoize package, you could have the
# following view memoized:
# file: your_module/views.py
# ...
@memoize(timeout=60)
def very_heavy_view(request):
time_consuming_function()
# ...
# ...