1. Vitaliy Shishorin
  2. cmsplugin_yandexmap
  3. Issues
Issue #1 new

API key not renders to page

Anonymous created an issue

i just installed django-cms, adds YANDEX_MAPS_API_KEY = 'AIRLe....' to mycmsproject/settings.py

Tried to add plugin to empty page, but in page source have <script src="http://api-maps.yandex.ru/1.1/index.xml?key=" type="text/javascript"></script> i.e. without key...

Comments (1)

  1. Anonymous

    this diff fixes that

    1c1
    < import settings
    ---
    > from django.conf import settings
    16,17c16
    <             'placeholder':placeholder,
    <             'settings':settings, 
    ---
    >             'placeholder':placeholder, 
    24c23
    < plugin_pool.register_plugin(YandexMapPlugin)
    ---
    > plugin_pool.register_plugin(YandexMapPlugin)
    
    
    
  2. Log in to comment