showing googlemaps in company admin
This commit is contained in:
@@ -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')
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user