Python has no built-in reverse function. (There is reversed , but I doubt what you want.)
Django has a reverse function. But you only get embedded Django in the code loaded as a Django view or the like; if you import or run this code in any other way, it will not exist.
So, presumably, you got something wrong earlier in the instructions and are not actually creating a view. (Django-PayPal instructions are clearly written for those who are already experienced Django developers, and if you do not understand the basic concepts of Django, you will probably have to work through tutorials .)
source share