tehfink avatar tehfink committed be1aee4

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

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
 

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

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"
-        }
-    }
-]
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.