Добавление маркеров google maps из админки django
Я пытаюсь добавить маркер из моей панели администратора в html в django. Вы можете видеть скриншот, что я могу ввести данные на моей странице администратора. экран админки. Но как мне подключить этот код к js?
Я следую этим руководствам:
https://developers.google.com/maps/documentation/javascript/examples/marker-simple https://developers.google.com/maps/documentation/javascript/examples/marker-remove
from .models import Camera
# Register your models here.
# admin.site.register(Camera)
@admin.register(Camera)
class CameraAdmin(admin.ModelAdmin):
list_display = ('id', 'area', 'street', 'postcode', 'type', 'latitude', 'longitude',)
search_fields = ('id', 'area', 'type', 'postcode',)
fieldsets = (
(None, {
'fields': ('area', 'street', 'postcode', 'type', 'latitude', 'longitude',)
}),
)