<commit_before>wagtail-openshift-quickstart
============================

.. image:: https://img.shields.io/badge/version-v1.2.0-blue.svg

.. image:: https://img.shields.io/badge/license-ISC%20License%20(ISCL)-blue.svg
    :target: http://en.wikipedia.org/wiki/ISC_license

`Wagtail CMS`_ quickstart for deployment on OpenShift Online

.. _Wagtail CMS: http://wagtail.io

Prerequisites
-------------
* You have an `OpenShift account`_
* You have installed the `rhc` command line tools for `remote OpenShift administration`_

.. _OpenShift account: https://www.openshift.com
.. _remote OpenShift administration: https://developers.openshift.com/en/getting-started-client-tools.html

Recommendations
---------------
* You use `virtualenv`_ for isolated local python development
* You are familiar with `Django`_ basics, at least visited their great `online tutorial`_

.. _virtualenv: http://virtualenv.readthedocs.org/en/latest/virtualenv.html
.. _Django: https://www.djangoproject.com
.. _online tutorial: https://docs.djangoproject.com/en/dev/intro/tutorial01

Getting started
---------------

Initialize OpenShift application and local codebase
***************************************************
* Open a terminal and change into your workspace where your code will live
* Create your `Python-based`_ and `PostgreSQL-backed`_ OpenShift `application`_ with a single command

  ``rhc app create yourwagtaildemoapp python-2.7 postgresql-9.2 --from-code https://github.com/timorieber/wagtail-openshift-quickstart``

.. _Python-based: https://www.python.org
.. _PostgreSQL-backed: http://www.postgresql.org
.. _application: https://developers.openshift.com/en/getting-started-creating-applications.html

**Great!** Your application is deployed and the git repository is cloned locally into ``yourwagtaildemoapp``

Prepare OpenShift environment
*****************************
* Open a terminal session on your application server

  ``rhc ssh -a yourwagtaildemoapp``
* Change directory to your application root

  ``cd $OPENSHIFT_REPO_DIR/wsgi/wagtail-openshift-quickstart``
* Create a superuser account

  ``python manage.py createsuperuser``
* Close terminal session

  ``exit``
* Enjoy your remote production site at

  ``http://yourwagtaildemoapp-yourdomain.rhcloud.com`` (Homepage)

  ``http://yourwagtaildemoapp-yourdomain.rhcloud.com/wagtail`` (Wagtail CMS administration)
<commit_msg>Added python-3.3 as alternative cartridge<commit_after>wagtail-openshift-quickstart
============================

.. image:: https://img.shields.io/badge/version-v1.2.0-blue.svg

.. image:: https://img.shields.io/badge/license-ISC%20License%20(ISCL)-blue.svg
    :target: http://en.wikipedia.org/wiki/ISC_license

`Wagtail CMS`_ quickstart for deployment on OpenShift Online

.. _Wagtail CMS: http://wagtail.io

Prerequisites
-------------
* You have an `OpenShift account`_
* You have installed the `rhc` command line tools for `remote OpenShift administration`_

.. _OpenShift account: https://www.openshift.com
.. _remote OpenShift administration: https://developers.openshift.com/en/getting-started-client-tools.html

Recommendations
---------------
* You use `virtualenv`_ for isolated local python development
* You are familiar with `Django`_ basics, at least visited their great `online tutorial`_

.. _virtualenv: http://virtualenv.readthedocs.org/en/latest/virtualenv.html
.. _Django: https://www.djangoproject.com
.. _online tutorial: https://docs.djangoproject.com/en/dev/intro/tutorial01

Getting started
---------------

Initialize OpenShift application and local codebase
***************************************************
* Open a terminal and change into your workspace where your code will live
* Create your `Python-based`_ (``python-2.7`` or ``python-3.3``) and `PostgreSQL-backed`_ OpenShift `application`_ with a single command

  ``rhc app create yourwagtaildemoapp python-2.7 postgresql-9.2 --from-code https://github.com/timorieber/wagtail-openshift-quickstart``

.. _Python-based: https://www.python.org
.. _PostgreSQL-backed: http://www.postgresql.org
.. _application: https://developers.openshift.com/en/getting-started-creating-applications.html

**Great!** Your application is deployed and the git repository is cloned locally into ``yourwagtaildemoapp``

Prepare OpenShift environment
*****************************
* Open a terminal session on your application server

  ``rhc ssh -a yourwagtaildemoapp``
* Change directory to your application root

  ``cd $OPENSHIFT_REPO_DIR/wsgi/wagtail-openshift-quickstart``
* Create a superuser account

  ``python manage.py createsuperuser``
* Close terminal session

  ``exit``
* Enjoy your remote production site at

  ``http://yourwagtaildemoapp-yourdomain.rhcloud.com`` (Homepage)

  ``http://yourwagtaildemoapp-yourdomain.rhcloud.com/wagtail`` (Wagtail CMS administration)

{'fraction_non_alphanumeric': 0.16952656605333885, 'fraction_numerical': 0.006615670870374199, 'mean_word_length': 4.573732718894009, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 18, 'lorem ipsum': 0, 'www.': 8, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4382762', 'n_tokens_mistral': 1502, 'n_tokens_neox': 1407, 'n_words': 363}