diff --git a/candalbjj/settings.py b/candalbjj/settings.py index d009fb8..bd5a0f4 100644 --- a/candalbjj/settings.py +++ b/candalbjj/settings.py @@ -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 diff --git a/main/views.py b/main/views.py index 18ede42..776399f 100644 --- a/main/views.py +++ b/main/views.py @@ -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)