This is a pre-production deployment of Warehouse, however changes made here WILL affect the production instance of PyPI.
Latest Version Dependencies status unknown Test status unknown Test coverage unknown
Project Description

This is a Django App which provides a screen to view and edit
the Demographics record.

It is an example / proof of concept application.

There is a dependency on the django-form-admin package. This package
is used to provide a simple forms layer. This package requires the
django.contrib.admin package to be configured.


Make sure you are in the correct virtualenv environment::

. python/bin/activate (or similar)

Configure pre-requisites::

pip install django-form-admin

Install the package::

pip install openapp_indivo_demographics

Register the packages.
Place these lines at the end of the file in the indivo_ui_server folder::

import os.path
import django.contrib
ADMIN_ROOT_DIR = os.path.dirname(django.contrib.__file__) + "/admin"
TEMPLATE_DIRS += ADMIN_ROOT_DIR + '/templates/',
INSTALLED_APPS += 'django.contrib.admin',

import formadmin
FORMADMIN_ROOT_DIR = os.path.dirname(formadmin.__file__)
INSTALLED_APPS += 'formadmin',

import openapp_indivo.demographics
DEMOGRAPHICS_ROOT_DIR = os.path.dirname(openapp_indivo.demographics.__file__)
INSTALLED_APPS += 'openapp_indivo.demographics',

MIDDLEWARE_CLASSES += 'openapp_indivo.demographics.middleware.GlobalRequestMiddleware',

Restart the server to make sure the configuration is correct.

You have to manually set up the application in the indivo_server
environment. It cannot detect it from the settings file.

Add these two files to the indivo_server environment.


"consumer_key": "",
"consumer_secret": "demographics"


"name" : "Demographics",
"description" : "View and Edit the Demographics record.",
"author" : "Kevin Gill, OpenApp",
"id" : "",
"version" : "0.1.0",
"smart_version": "0.0",

"mode" : "ui",
"scope": "record",
"has_ui": true,
"frameable": true,

"icon" : "/static/openapp_indivo/demographics/images/demographics.png",
"index": "/openapp_indivo/demographics/start_auth?record_id={record_id}&carenet_id={carenet_id}",
"oauth_callback_url": "/openapp_indivo/demographics/after_auth"

You have to notify indivo that there is a change to the apps configuration.
Run this command against the indivo_server

python sync_apps

After this you should be able to add the application to a record.

Outstanding Issues

Where a record has no Demographics document, an error is produced. I don't know
whether records with Demographics documents are expected or the demo data is


1.0 - 22 Nov 2012

* Initial release

1.0.1 - 22 Nov 2012

* Fix problems with installing from pypi.
* Fix order of fields in the PUT document.
Release History

Release History


This version

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

Download Files

Download Files

TODO: Brief introduction on what you do with files - including link to relevant help section.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
openapp_indivo_demographics-1.0.1.tar.gz (13.2 kB) Copy SHA256 Checksum SHA256 Source Nov 22, 2012

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS HPE HPE Development Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting