Skip to main content

A tool to build a static website for OCQM cohorts.

Project description

Part of our research server that we offer OCQM clients. See http://www.ocqm.org/

Installation
------------

To use locally create a new virtual environment in an empty folder::

virtualenv -p python3.4 .

Activate the environment:

source bin/activate

And install the package::

pip install ocqm_cohort_website

Usage
-----

To see how it looks like just run::

ocqm-cohort-website demo

And open http://localhost:8000

To create your own site run in an empty folder::

ocqm-cohort-website init

And start editing the `cohort.yml` file. To see your changes run::

ocqm-cohort-website build --serve

And have a look at http://localhost:8000 again.

Tests
-----

To run the tests install tox::

pip install tox

And run it::

tox

ocqm_cohort_website works with python 2.7 and python 3.3+

Current Build Status
~~~~~~~~~~~~~~~~~~~~
|Build Status|

.. |Build Status| image:: https://secure.travis-ci.org/seantis/ocqm_cohort_website.png
:target: http://travis-ci.org/seantis/ocqm_cohort_website

Translations
------------

To add a new language::

python setup.py init_catalog -l <locale>

e.g.::

python setup.py init_catalog -l it

To update the catalog::

python setup.py update_catalog

To compile the catalog::

python setup.py compile_catalog

Updating and compiling the catalog is required every time a text changes!

License
-------

ocqm_cohort_website is licensed under MIT. See LICENSE file.

Attribution
-----------

* The images in the example cohort are from http://pixabay.com/

* The chart in the example has been generated by http://www.chartjs.org/
History
-------

0.1.7 (2014-08-25)
~~~~~~~~~~~~~~~~~~

- Make sure the *.mo files are included in the release package.
[href]

0.1.6 (2014-08-25)
~~~~~~~~~~~~~~~~~~

- Fixed bad nesting of langauges. Closes #1.
[href]

- Rounded corners banner image for the top only.
[freinhard]

0.1.5 (2014-08-21)
~~~~~~~~~~~~~~~~~~

- No longer compile the catalog on the fly.
[href]

0.1.4 (2014-08-21)
~~~~~~~~~~~~~~~~~~

- Fixes demo not working.
[href]

0.1.3 (2014-08-21)
~~~~~~~~~~~~~~~~~~

- Fixes http server not working under Python 3.
[href]

0.1.2 (2014-08-21)
~~~~~~~~~~~~~~~~~~

- Properly include babel commands in setup.py.
[href]

- Make sure all files are included in the package.
[href]

0.1.1 (2014-08-21)
~~~~~~~~~~~~~~~~~~

- Renames remaining ocqm_cohort_site references to ocqm_cohort_website.
[href]

0.1 (2014-08-21)
~~~~~~~~~~~~~~~~

- Initial release.
[href]

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ocqm_cohort_website-0.1.7.tar.gz (2.2 MB view details)

Uploaded Source

File details

Details for the file ocqm_cohort_website-0.1.7.tar.gz.

File metadata

File hashes

Hashes for ocqm_cohort_website-0.1.7.tar.gz
Algorithm Hash digest
SHA256 ba0ac50cbb2cd466e0541d84ff8c4b01a41b6afe46b7d7c1b8291b99a22c6cd2
MD5 57ae561f3bd590dfeadcdf4f22e4ee28
BLAKE2b-256 4f00d5a805567c153d4141f8af2a8161870b851a04623638d889ff1fdeb64167

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page