Last active
December 20, 2016 07:27
Revisions
-
wiesson revised this gist
Dec 20, 2016 . No changes.There are no files selected for viewing
-
wiesson revised this gist
Dec 20, 2016 . No changes.There are no files selected for viewing
-
wiesson revised this gist
Dec 20, 2016 . No changes.There are no files selected for viewing
-
wiesson revised this gist
Dec 20, 2016 . No changes.There are no files selected for viewing
-
wiesson revised this gist
Dec 20, 2016 . 1 changed file with 3 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -9,4 +9,6 @@ class Media: } js = ( 'app/js/map.js', '//maps.googleapis.com/maps/api/js?key=' + settings.API_KEY_GOOGLEMAPS + '&libraries=places&callback=initMap' ) admin.site.register(Location, LocationAdmin) -
wiesson created this gist
Dec 20, 2016 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,12 @@ from django.contrib import admin from django.conf import settings from .models import Location class LocationAdmin(admin.ModelAdmin): class Media: css = { 'all': ('app/css/geocoder.css',) } js = ( 'app/js/map.js', '//maps.googleapis.com/maps/api/js?key=' + settings.API_KEY_GOOGLEMAPS + '&libraries=places&callback=initMap' )