{ "info": { "author": "Praekelt.org", "author_email": "dev@praekelt.org", "bugtrack_url": null, "classifiers": [ "Framework :: Django", "Programming Language :: Python", "Topic :: Internet :: WWW/HTTP", "Topic :: Internet :: WWW/HTTP :: WSGI :: Application" ], "description": "Molo User Metadata\n==================\n\n.. image:: https://travis-ci.org/praekelt/molo.usermetadata.svg?branch=develop\n :target: https://travis-ci.org/praekelt/molo.usermetadata\n :alt: Continuous Integration\n\n.. image:: https://coveralls.io/repos/praekelt/molo.usermetadata/badge.png?branch=develop\n :target: https://coveralls.io/r/praekelt/molo.usermetadata?branch=develop\n :alt: Code Coverage\n\nProvides code to help with User metadata in a project using the Molo code base.\n\n.. Note:: This library does not provide a Django user model, it provides a\n metadata model that can be attached to a user. Our experience is\n that custom User models in Django add all sorts of unpleasantries\n when using migrations.\n\nInstallation::\n\n pip install molo.usermetadata\n\n\nIn your app settings::\n\n INSTALLED_APPS = (\n 'molo.usermetadata',\n )\n\n MIDDLEWARE = (\n 'molo.usermetadata.middleware.PeronsaMiddleware'\n )\n\nIn your app urls.py::\n\n urlpatterns += patterns('',\n url(r'^meta/', include('molo.usermetadata.urls', namespace='molo.usermetadata', app_name='molo.usermetadata')),\n )\n\nNote::\n\n In order for the personae to be activated, choose activate under wagtail settings > personae settings\n\nGoogle Analytics\n----------------\n\nIn order for GA to pick up persona data you need to add the following to your base.html\n\nAt the top of the template you need to load the persona tag::\n\n {% load persona_tags %}\n\nIn your GTM block add the following to get the persona value::\n\n {% persona_selected as persona_selected_value %}\n\nIn your