Go to file
ikame d22cbb6538 New tests skeleton and examples using pytest
Instructions (from the project root):
1. pip install -r requirements-devel.txt
2. py.test
2014-04-29 14:02:46 +02:00
doc Remove the coding lines 2014-04-25 12:33:16 +02:00
settings Remove the coding lines 2014-04-25 12:33:16 +02:00
sql Refactoring sites. 2013-12-04 18:38:11 +01:00
taiga Fix a minor bug in the project tasgs API call 2014-04-29 10:39:55 +02:00
tests New tests skeleton and examples using pytest 2014-04-29 14:02:46 +02:00
.ctags Adding .ctags config file to the repository 2014-03-20 13:59:41 +01:00
.gitignore Fix the .gitignore file 2014-02-28 14:06:32 +01:00
.travis.yml US#45: Testing and adding migrations on project templates 2014-04-25 07:13:17 +02:00
AUTHORS.rst US#49: Renaming app to Taiga 2014-01-27 17:33:43 +01:00
LICENSE Replace main license file. 2014-04-21 15:29:21 +02:00
NOTICE Some Apache license references removed 2014-04-21 16:34:02 +02:00
README.rst Update README.rst 2014-03-13 17:11:36 +01:00
manage.py Move settings to project repo root path. 2014-02-28 12:10:25 +01:00
pytest.ini New tests skeleton and examples using pytest 2014-04-29 14:02:46 +02:00
regenerate.sh US#45: Working the base of the proyect template system 2014-04-25 07:13:17 +02:00
requirements-devel.txt New tests skeleton and examples using pytest 2014-04-29 14:02:46 +02:00
requirements.txt US#45: Testing and adding migrations on project templates 2014-04-25 07:13:17 +02:00

README.rst

Taiga Backend
=================

.. image:: http://kaleidos.net/static/img/badge.png
    :target: http://kaleidos.net/community/taiga/

.. image:: https://travis-ci.org/taigaio/taiga-back.png?branch=master
    :target: https://travis-ci.org/taigaio/taiga-back

.. image:: https://coveralls.io/repos/taigaio/taiga-back/badge.png?branch=master
    :target: https://coveralls.io/r/taigaio/taiga-back?branch=master


Setup development environment
-----------------------------

Just execute these commands in your virtualenv(wrapper):

.. code-block:: console

    pip install -r requirements.txt
    python manage.py syncdb --all --noinput
    python manage.py migrate --fake
    python manage.py loaddata initial_user
    python manage.py sample_data
    python manage.py createinitialrevisions

You have to load the sql sentences of the file ``sql/tags.sql`` and your database
must support PL/Python. You use a dbuser with privileges in the database,
'taiga' for example, to do this.

.. code-block:: console

    psql taiga

.. code-block:: sql

    CREATE LANGUAGE plpythonu;

    CREATE OR REPLACE FUNCTION unpickle (data text)
        RETURNS text[]
    AS $$
        import base64
        import pickle

        return pickle.loads(base64.b64decode(data))
    $$ LANGUAGE plpythonu IMMUTABLE;

    CREATE INDEX issues_unpickle_tags_index ON issues_issue USING btree (unpickle(tags));


Note: taiga only runs with python 3.3+.

Note: Initial auth data: admin/123123


Polyfills
---------

Django-Rest Framework by default returns 403 for not authenticated requests and permission denied
requests. The file ``taiga/base/monkey.py`` contains a temporary fix for this bug.

This patch is applied when the module ``base.models`` it's loaded. Once it's solved on django rest
framework, this patch can be removed.