INACTIVE - http://mzl.la/ghe-archive - Drumbeat.org. Rewritten in Django and made better.
Перейти к файлу
Paul Osman 97d2dc5b9d Update settings_local.py template with instructions for using ffmpeg 2011-01-16 19:45:57 -05:00
apps Make sure we clean up after ourselves 2011-01-16 19:44:27 -05:00
media Give users the ability to delete their profiles 2011-01-13 20:48:03 -05:00
requirements We need to install jinja2 to use test-utils (because we use one of their base classes for TestCases) 2011-01-14 20:48:32 -05:00
templates Try as I may, I just can't make this ugly task pretty. 2011-01-16 19:30:21 -05:00
.gitignore Some additions to .gitignore 2011-01-13 20:53:52 -05:00
LICENSE.txt Adding MPL license file 2010-07-15 16:00:31 -04:00
README.rst Make note in README about running south migrations in specific order 2011-01-14 22:48:23 -05:00
__init__.py Initial commit for batucada 2010-07-15 12:11:55 -04:00
manage.py Use django_nose for tests. Also, move importing of settings_local to manage.py 2010-10-01 15:10:39 -04:00
settings.py Touching up emails. Subject to change, but these will do for now 2011-01-09 21:51:39 -05:00
settings_local.dist.py Update settings_local.py template with instructions for using ffmpeg 2011-01-16 19:45:57 -05:00
urls.py Adding placeholder terms of service 2011-01-12 09:07:44 -05:00

README.rst

========
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: ::

   git clone git://github.com/paulosman/batucada.git

To get started, you'll need to make sure that ``virtualenv`` and ``pip`` are installed. ::

   sudo easy_install virtualenv
   sudo easy_install pip

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 ::

   cd batucada
   mkvirtualenv batucada 
   workon batucada
   pip install -r requirements/compiled.txt
   pip install -r requirements/prod.txt

.. _installation instructions: http://www.doughellmann.com/docs/virtualenvwrapper/

If you are doing an update, you might find it helps to delete pyc files: ::

    find . -name "*.pyc" | xargs rm

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

Next, sync the database and run migrations. ::

   python manage.py syncdb --noinput 

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

What a pain! 

.. _Bug # 623612: https://bugzilla.mozilla.org/show_bug.cgi?id=623612

Finally, start the development server to take it for a spin. ::

   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. 

.. _Drumbeat mailing list: http://www.mozilla.org/about/forums/#drumbeat-website