INACTIVE - http://mzl.la/ghe-archive - Drumbeat.org. Rewritten in Django and made better.
Перейти к файлу
Paul Osman ad021c00fa Support legacy usernames that have a '.' char in them 2011-02-10 16:57:09 -05:00
apps Support legacy usernames that have a '.' char in them 2011-02-10 16:57:09 -05:00
media buttons should be visible in IE8 standards mode. bug #632757 2011-02-09 11:16:42 +00:00
requirements Modify requirements/prod.txt to point to fork of django-push 2011-02-09 22:59:33 -05:00
templates added a default id of #body to the body so that if child templates don't define their own id, the attr isn't empty and a validation error isn't thrown 2011-02-07 22:37:31 -05:00
wsgi Add DJANGO_SETTINGS_MODULE to wsgi file 2011-01-25 07:42:27 -05:00
.gitignore ignoring media/videos/projects 2011-01-21 13:56:42 -05:00
LICENSE.txt Adding MPL license file 2010-07-15 16:00:31 -04:00
README.rst Add relationships to the list of apps using migrations 2011-01-22 23:20:30 -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 Displaying the welcome message should not be predicated on something arbitrary like the presence of a user image. Instead, only show the welcome message until the user clicks on 'close' 2011-02-07 09:41:01 -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 stashing away work on modals so that I can move on to other things until some details can be sorted 2011-01-17 13:17:07 -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
   python manage.py migrate relationships

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