Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

164
Views
Django django-location-field missing API Keys

I am using the https://github.com/caioariede/django-location-field library to build a Location View using Django. The issue is that I can't find a documentation saying how to define my own Google Maps API KEY.

This is the code I have on my settings.py:

LOCATION_FIELD_PATH = STATIC_URL + 'location_field'
LOCATION_FIELD = {
    'map.provider': 'google',
    'map.zoom': 13,

    'search.provider': 'google',
    'search.suffix': '',

    # Google
    'provider.google.api': '//maps.google.com/maps/api/js',
    'provider.google.api_key': 'MY_API_KEY_HERE',
    'provider.google.map_type': 'ROADMAP',


    # misc
    'resources.root_path': LOCATION_FIELD_PATH,
    'resources.media': {
        'js': [
           LOCATION_FIELD_PATH + '/js/jquery.livequery.js',
            LOCATION_FIELD_PATH + '/js/form.js',
        ],
    },
}

But this solution dose not seem to work.

maps.google.com/maps-api-v3/api/js/28/11/util.js:219 Google Maps API warning: NoApiKeys https://developers.google.com/maps/documentation/javascript/error-messages#no-api-keys

I have been searching for a while now, but no luck in getting the answer.

Error I get

about 4 years ago · Santiago Trujillo
2 answers
Answer question

0

You may use django-geoposition instead of django-location-field. It has the same functionality and also has a simple documentation https://django-geoposition.readthedocs.io/en/latest/.

You can find how to define your Google Maps API KEY in https://django-geoposition.readthedocs.io/en/latest/#installation.

about 4 years ago · Santiago Trujillo Report

0

The solution is to add the following to the settings.py file:

GOOGLE_MAPS_V3_APIKEY = 'YOUR_API_KEY_HERE'

about 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!