showing googlemaps in company admin

This commit is contained in:
Sam
2021-03-05 13:13:49 +00:00
parent 1aa2698763
commit 4316ab6f2b
5 changed files with 23 additions and 2 deletions

View File

@@ -56,6 +56,7 @@ INSTALLED_APPS = [
'tagulous',
'anymail',
'storages',
'mapwidgets',
# local apps
'core',
@@ -159,3 +160,13 @@ TAXONOMY_FILE = 'shop-taxonomy.es-ES.txt'
MEDIA_URL = '/media/'
MEDIA_ROOT = BASE_DIR + '/../media/'
GEOIP_PATH = BASE_DIR + '/../datasets/'
MAP_WIDGETS = {
"GooglePointFieldWidget": (
("zoom", 6),
("mapCenterLocationName", "madrid"),
("GooglePlaceAutocompleteOptions", {'componentRestrictions': {'country': 'es'}}),
("markerFitZoom", 12),
),
"GOOGLE_MAP_API_KEY": os.getenv('GOOGLE_MAP_API_KEY')
}