<commit_before>Getting Started
===============

Get your environment set up::

    virtualenv pycona-2103-web-env
    . pyconca-2013-web-env/bin/activate
    git clone git://github.com/pyconca/2013-web.git pyconca-2013-web
    cd pyconca-2013-web

If you're using XCode 4 on Snow Leopard::

    export ARCHFLAGS="-arch i386 -arch x86_64"


Install requirements::

    pip install -r requirements.txt

    # If you're still using Python 2.6 (stop that, use 2.7!)
    pip install importlib

Create a local database::

    ./manage.py syncdb
    # (and create superuser)

Insert initial data (the site won't work otherwise)::

    ./manage.py loaddata fixtures/pyconca2013/*.json

Go test it out::

    ./manage.py runserver
    # Go to http://localhost:8000/<commit_msg>Updated getting_started to include instructions for i18n and docs<commit_after>Getting Started
===============

Get your environment set up::

    virtualenv pycona-2013-web-env
    . pyconca-2013-web-env/bin/activate
    git clone git://github.com/pyconca/2013-web.git pyconca-2013-web
    cd pyconca-2013-web

If you're using XCode 4 on Snow Leopard::

    export ARCHFLAGS="-arch i386 -arch x86_64"


Install requirements::

    pip install -r requirements.txt

    # If you're still using Python 2.6 (stop that, use 2.7!)
    pip install importlib

Create a local database::

    ./manage.py syncdb
    # (and create superuser)

Insert initial data (the site won't work otherwise)::

    ./manage.py loaddata fixtures/pyconca2013/*.json

Go test it out::

    ./manage.py runserver
    # Go to http://localhost:8000/

For internationalization/i18n:

    cd symposion_project
    django-admin.py makemessages -a
    # now make changes to generated .po files ...
    django-admin.py compilemessages

To build documentation:
    
    # Install requirements for docs first
    pip install -r requirements-docs.txt
    cd doc/
    make html
    open _build/html/index.html
{'fraction_non_alphanumeric': 0.10572460030943785, 'fraction_numerical': 0.04332129963898917, 'mean_word_length': 3.0165631469979295, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, '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': '5252261', 'n_tokens_mistral': 688, 'n_tokens_neox': 591, 'n_words': 195}