This commit is contained in:
tsb1995 2020-12-24 22:08:05 -08:00
parent aa6abb4c6a
commit 60c03cad1e
2 changed files with 2 additions and 2 deletions

View File

@ -32,7 +32,7 @@ MAPS_API_KEY = os.getenv('MAPS_API_KEY', MAPS_API_KEY_ALT)
DEBUG = False
# Allow heroku to host as well as local server
ALLOWED_HOSTS = ['candalbjj.herokuapp.com', '127.0.0.1:8000', '127.0.0.1']
ALLOWED_HOSTS = ['candalbjj.herokuapp.com', '127.0.0.1:8000', '127.0.0.1', 'localhost']
# Application definition

View File

@ -9,7 +9,7 @@ from . GooglePlaces import *
def index(request):
# # For using google places api if JS fails
# api = GooglePlaces("AIzaSyDpJeiOSkitSPqzA-dHqCZnRkf7-_ceJUY")
# api = GooglePlaces("INSERT API KEY HERE")
# fields = ['name', 'website', 'rating', 'review']
# details = api.get_place_details("ChIJe-_o2Sgp3YARE02PnQhDX2A", fields)
# print(details)