Skip to content

Commit

Permalink
Specifying Requirements
Browse files Browse the repository at this point in the history
A lot of Python projects use a ``requirements.txt`` file to list
their dependencies. DotCloud detects this file, and if it exists,
``pip`` will be used to install the dependencies.

We need (at least) four things here:

* ``pymongo``, the MongoDB client for Python;
* ``django_mongodb_engine``, which contains the real interface between
  Django and MongoDB;
* ``django-nonrel``, a fork of Django which includes minor tweaks to
  allow operation on NoSQL databases;
* ``djangotoolbox``, which is not strictly mandatory for Django itself,
  but is required for the admin site to work.

To learn more about the specific differences between "regular" Django
and the NoSQL version, read `django-nonrel on All Buttons Pressed
<http://www.allbuttonspressed.com/projects/django-nonrel>`_.

..

``pip`` is able to install code from PyPI (just like ``easy_install``);
but it can also install code from repositories like Git or Mercurial,
as long as they contain a ``setup.py`` file. This is very convenient
to install new versions of packages automatically without having to
publish them on PyPI at each release -- like in the present case.

See http://www.pip-installer.org/en/latest/requirement-format.html for
details about ``pip`` and the format of ``requirements.txt``.
  • Loading branch information
jpetazzo committed Sep 7, 2011
1 parent 878c60d commit 02c3db9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions requirements.txt
@@ -0,0 +1,4 @@
pymongo
git+http://github.com/FlaPer87/django-mongodb-engine.git#egg=django_mongodb_engine
hg+http://bitbucket.org/wkornewald/django-nonrel#egg=Django
hg+http://bitbucket.org/wkornewald/djangotoolbox#egg=djangotoolbox

0 comments on commit 02c3db9

Please sign in to comment.