2010-08-16 22:07:44 +04:00
========
Batucada
========
Batucada is a ground up rewrite of drumbeat.org in `Django`_ .
.. _Django: http://www.djangoproject.com/
Installation
------------
To install Batucada, you must clone the repository: ::
2011-01-14 00:15:20 +03:00
git clone git://github.com/paulosman/batucada.git
2010-08-16 22:07:44 +04:00
2010-11-02 05:46:07 +03:00
To get started, you'll need to make sure that `` virtualenv `` and `` pip `` are installed. ::
sudo easy_install virtualenv
sudo easy_install pip
2010-08-27 22:58:09 +04:00
I recommend using `` virtualenvwrapper `` to manage your virtual environments. Follow the `installation instructions`_ . Once installed, create your virtual environment for `` batucada `` and install the dependencies ::
2010-08-16 22:07:44 +04:00
2010-08-27 22:58:09 +04:00
cd batucada
2010-08-16 22:07:44 +04:00
mkvirtualenv batucada
2010-11-02 22:04:07 +03:00
workon batucada
2011-01-06 23:36:09 +03:00
pip install -r requirements/compiled.txt
pip install -r requirements/prod.txt
2010-08-16 22:07:44 +04:00
2010-11-02 22:23:20 +03:00
.. _installation instructions: http://www.doughellmann.com/docs/virtualenvwrapper/
2010-12-24 00:59:32 +03:00
If you are doing an update, you might find it helps to delete pyc files: ::
find . -name "*.pyc" | xargs rm
2011-01-14 00:20:10 +03:00
You should create a settings_local.py. Most people will be able to get away with the template provided. ::
cp settings_local.dist.py settings_local.py
2010-11-26 15:31:17 +03:00
Next, sync the database and run migrations. ::
2010-08-16 22:07:44 +04:00
python manage.py syncdb --noinput
2011-01-15 06:48:23 +03:00
There's a problem with real databases (read: not sqlite) where south migrations are run in an order that violates foreign key constraints. See `Bug # 623612`_ for details. Until that is fixed, you're best off running migrations in this order. ::
python manage.py migrate projects
python manage.py migrate users
python manage.py migrate activity
python manage.py migrate statuses
python manage.py migrate links
python manage.py migrate dashboard
2011-01-23 07:20:30 +03:00
python manage.py migrate relationships
2011-01-15 06:48:23 +03:00
What a pain!
.. _Bug # 623612: https://bugzilla.mozilla.org/show_bug.cgi?id=623612
2010-11-26 15:31:17 +03:00
Finally, start the development server to take it for a spin. ::
2010-08-16 22:07:44 +04:00
python manage.py runserver
Get Involved
------------
To help out with batucada, join the `Drumbeat mailing list`_ and introduce yourself. We're currently looking for help from Django / Python and front-end (HTML, CSS, Javascript) developers.
2011-01-14 00:15:20 +03:00
.. _Drumbeat mailing list: http://www.mozilla.org/about/forums/#drumbeat-website