Django-cms plugin for fetching Google+ activities. You can find a preview at the bottom of this README.
Still in Beta.
Install these packages and their requirements:
NOTE: Django 1.6.x is supported only with Django-cms 3.x
Install cmsplugin-googleplus in your environment.
Add cmsplugin_googleplus to the INSTALLED_APPS list in your project's settings.py.
Go to the google apis console and create a new project (a google account is required)
Select Services and activate Google+ API
Select API Access and get the API key
Add the API key to your settings.py:
GOOGLEPLUS_PLUGIN_DEVELOPER_KEY = '<your_api_key>'
python manage.py syncdb --all python manage.py migrate --fake
The first command will prompt you to create a super user. Choose ‘yes’ and enter appropriate values.
python manage.py syncdb python manage.py migrate
This plugin has an example template that uses Twitter Bootstrap 3. You can use it as skeleton for you templates.
Create your template and inside settings.py add:
GOOGLEPLUS_PLUGIN_TEMPLATES = ( ('cmsplugin_googleplus/twitter_bootstrap.html', _('Example Template using Twitter Bootstrap')), ('path/to/my/template', _('My beautiful template')) )
The activities are cached so you need to:
(Optional) Decide the activities cache duration. Default is 5 minutes. Inside settings.py add:
GOOGLEPLUS_PLUGIN_CACHE_DURATION = <custom_cache_duration>
The actual 'Courtesy Limit' for the Google+ API is 10,000 requests/day
For translators I've set up a Transifex account where you can add languages and translate the .po
$ coverage run runtests.py && coverage report -m
This is how the plugin looks with the example template.