Commits

tehfink  committed be1aee4

changed from an initial_data in json format to a manually called file in yaml format

  • Participants
  • Parent commits f1bc802

Comments (0)

Files changed (3)

 - add 'cmsplugin_googlesearch' to settings.INSTALLED_APPS
 - add ('cmsplugin_googlesearch.urls', 'Google Search plugin app') to settings.CMS_APPLICATIONS_URLS
 - run `python manage.py syncdb`
+- run `python manage.py loaddata base_data.yaml`
 - add plugins to pages, AND attach 'Google Search plugin app' to a page (you may have to restart server process for urls to an attached page to work, something with how django-cms caches urls). this is important, as the search plugin redirects to the apphooked page
 - edit settings for the plugin in django administration interface. these settings are cached as well
 

File cmsplugin_googlesearch/fixtures/base_data.yaml

+- model: cmsplugin_googlesearch.GoogleSearchSettings
+    pk: 0
+    fields:
+        site: 1
+        api_version: 1.0
+        uri: http://ajax.googleapis.com/ajax/services/search/web

File cmsplugin_googlesearch/fixtures/initial_data.json

-[
-    {
-        "pk": 0,
-        "model": "cmsplugin_googlesearch.GoogleSearchSettings",
-        "fields": {
-            "site": "1",
-            "api_version": "1.0",
-            "uri": "http://ajax.googleapis.com/ajax/services/search/web"
-        }
-    }
-]