Acomodados packages para funcionar con gunicorn

This commit is contained in:
2020-11-19 03:15:09 -03:00
parent 5ff211c1db
commit 20c72e3af0
9 changed files with 7 additions and 7 deletions

12
home/services/photos.py Normal file
View File

@@ -0,0 +1,12 @@
import requests
url = "https://api.unsplash.com/photos/"
def get(key):
data = {
'client_id': key,
}
response = requests.get(url, params=data)
return {'result': response.json()}