The library to power Playdoh, Mozilla's Django template. File issues in playdoh:
Перейти к файлу
Kumar McMillan c9bbf1c534 ignore python dist files 2015-01-15 10:24:14 -06:00
funfactory Bump to 2.3.0 2015-01-14 15:47:09 -06:00
tests Merge pull request #61 from kyoshino/fix-tests 2014-11-20 23:25:40 -05:00
.coveragerc Add support for travis-ci.org and coveralls.io. 2013-09-13 15:38:28 -04:00
.gitignore ignore python dist files 2015-01-15 10:24:14 -06:00
.travis.yml Add support for travis-ci.org and coveralls.io. 2013-09-13 15:38:28 -04:00
LICENSE Let the fun begin 2011-07-15 17:42:33 -05:00
MANIFEST.in Fixes recursive pattern for distributing requirement files 2011-11-10 19:44:51 -06:00
README.rst Add support for travis-ci.org and coveralls.io. 2013-09-13 15:38:28 -04:00
setup.py Flesh out classifiers r=peterbe 2013-02-19 11:06:12 -05:00
tox.ini Add support for travis-ci.org and coveralls.io. 2013-09-13 15:38:28 -04:00

README.rst

funfactory is what makes `playdoh`_ fun. You import it within a Django
`manage.py`_ file and it sets up the playdoh environment and configures some
settings.

.. image:: https://travis-ci.org/mozilla/funfactory.png
    :target: https://travis-ci.org/mozilla/funfactory
.. image:: https://coveralls.io/repos/mozilla/funfactory/badge.png?branch=master
    :target: https://coveralls.io/r/mozilla/funfactory
.. image:: https://pypip.in/v/funfactory/badge.png
    :target: https://crate.io/packages/funfactory

Install
=======

::

    pip install funfactory

What is it?
===========

funfactory is the core of `playdoh`_, Mozilla's Django starter kit.
funfactory is *not* a collection of standalone apps.

Check out the `playdoh docs`_ for a complete user guide.

funfactory is also the name of a script that automates the installation of a
new Playdoh app.  Check out ``funfactory --help`` for more info.

.. _`playdoh`: https://github.com/mozilla/playdoh
.. _`playdoh docs`: http://playdoh.readthedocs.org/
.. _`manage.py`: https://github.com/mozilla/playdoh/blob/master/manage.py

Hacking
=======

To develop new features for playdoh core, you'll want to hack on funfactory!
To run the test suite, first install `tox`_ then cd into the root dir
and type the ``tox`` command.  The ``tox.ini`` will handle the rest.

.. _`tox`: http://tox.readthedocs.org/

.. note::
    if you supply a different playdoh remote URL or a different
    branch or something, remember to delete the ``.playdoh/`` directory
    between tests for a clean slate.

To try out cutting edge funfactory features in a real playdoh app, you can use
the develop command to install a link to the files within your virtualenv::

  workon the-playdoh-clone
  pushd ~/your/path/to/funfactory
  python setup.py develop
  popd

Test Suite Environment
======================

Here are some environment variables that are acknowledged by the test suite:

**FF_DB_USER**
  MySQL db user to run manage.py test. Defaults to ``root``.

**FF_DB_PASS**
  MySQL user password for manage.py test. Defaults to an empty string.

**FF_DB_NAME**
  MySQL db name for manage.py test. Defaults to ``_funfactory_test``.

**FF_DB_HOST**
  MySQL db host for manage.py test. Defaults to an empty string.

**FF_PLAYDOH_REMOTE**
  Git qualified URL for playdoh repo. Defaults to ``git://github.com/mozilla/playdoh.git``.

**FF_PLAYDOH_BRANCH**
  Default branch to pull and update. Defaults to ``master``.