Token refactoring and new concepts to use django cache. NOT WORKING