Generate real random string
Use this snippet to generate cryptografic-ready random strings
- python
Use this snippet to generate cryptografic-ready random strings
Use this decorator in your views to cache HttpResponse per user, so each user has his own cache, instead of a shared one as `from django.views.decorators.cache.cache_page` does. Add this to use: from somewhere import cache_per_user @cache_per_user(ttl=3600, cache_post=False) def my_view(request): return HttpResponse("LOL %s"%(request.user)) All documentation inside the decorator are in brazilian portuguese, feel free to translate to english
rafaelsdm has posted 2 snippets.