save image from url to django ImageField
Saves image from a url into django's ImageField in a model. Uses [requests](http://pypi.python.org/pypi/requests/) library.
- django
- image
- requests
- remote
Saves image from a url into django's ImageField in a model. Uses [requests](http://pypi.python.org/pypi/requests/) library.
Takes a tweet url, requests the json from Twitter oEmbed, parses the json for the html element and returns it to your template. The html returned is ready to go and will be shown as a tweet on your web page. This uses the Requests library for Python. A full example can be found on GitHub https://github.com/z3ke1r/django-tweet-embed.
This code can convert a url to short url using google URL Shortener API https://developers.google.com/url-shortener/v1/getting_started
You can test how your django app behaves depending on what kind of response it gets from the API. It assumes were're using the python requests library.