Link generator using python and django