The next version of Written in Django and made better. Forked from Batucada.
Switch branches/tags
Nothing to show
Pull request Compare This branch is 5152 commits behind p2pu:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.



Lernanta is the new platform for P2PU. We are building on the codebase from Batucada, a rewrite of by Mozilla.

Get Involved

Interested in getting involved in Lernanta code development? Check out the development wiki [0] for more info! For a broader view on the development and tech team at P2PU, check out the P2PU Development and Tech team [1] page on the P2PU wiki [2] .

[0] [1] [2]


You need a few prerequisites

sudo apt-get install python-setuptools python-dev build-essential

To install Lernanta, you must clone the repository:

git clone git://

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

sudo easy_install virtualenv
sudo easy_install pip

You'll also need to have mysql installed (mysql-client, mysql-server, libmysqlclient-dev).

I recommend using virtualenvwrapper to manage your virtual environments. Follow the installation instructions. Once installed, create your virtual environment for lernanta and install the dependencies

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

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

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

You should create a Most people will be able to get away with the template provided.


If the mysql database doesn't exist yet, create it.

mysqladmin -u <user> -p create <database name>

Next, sync the database and run migrations.

python syncdb --noinput --all

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

python runserver

To run the test framework.

python test

To recreate the test database before running the tests.

FORCE_DB=True python test

After updating a database model you will have to make a migration for the change, then apply it.

python schemamigration <appname> --auto
python migrate <appname>