I have a Django view in one of my websites, with logic that can be made so that it's separated from the rest of the code.
I would like to provide this logic/functionality to third-party websites, regardless of the Python framework they're using. It needs to be accessible from a URL, say http://ift.tt/1T29uWj and needs access to request/server params.
Is there a way in Python to provide a generic view/page to websites without having to customize implementation for each framework?
It is necessary that the script is executed by their servers and served from their domains. The only solution I see so far is to customize it for the major frameworks.
I'm thinking of a python module, but never made so so I don't know if I can make it so that a URL is browsable from that module. As you can see, my Python knowledge is limited.
I also have it in PHP and in that case I just provide a PHP file, they dump it on their doc root.
Aucun commentaire:
Enregistrer un commentaire