call the function warnings.warn with 3 arguments:
warnings . warn ( "memoize wrapper is deprecated and will be removed in " "Django 1.9. Use django.utils.lru_cache instead." , RemovedInDjango19Warning , stacklevel = 2 )