Answer the question
In order to leave comments, you need to log in
How to solve Easy_maps (google maps api) connection problem?
Tried to connect Easy Maps ( https://pypi.org/project/django-easy-maps/ ) to the site. I did everything according to the instructions, but the map simply does not appear on the page. There are no errors in the console from which I start the server.
What I did:
1) Installed Easy maps pip install django-easy-maps
2) Added the application to the list
INSTALLED_APPS = (
...
'easy_maps',)
./manage.py migrate
EASY_MAPS_GOOGLE_MAPS_API_KEY = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ___0123456789'
{% load easy_maps_tags %}
<!-- Default map with 300x400 dimensions -->
{% easy_map "Russia, Ekaterinburg, Mira 32" 300 400 %}
python manage.py runserver
{% load easy_maps_tags %}
<!-- Default map with 300x400 dimensions -->
{% easy_map "Russia, Ekaterinburg, Mira 32" 300 400 using 'map.html' %}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question