8 * `Python 2.6+ <http://python.org>`_
9 * Python requiremets: ``pip install -r requirements.txt``
10 * a library for your database of choice
11 (see `DBs supported by Django <http://docs.djangoproject.com/en/dev/topics/install/#get-your-database-running>`_)
12 * `Sass <http://sass-lang.com>`_ >= 3.2 for parsing SCSS stylesheets
13 * Librarian (bundled as a git submodule, remember to ``git submodule update --init``
14 * Librarian has more dependencies if you want to build PDF and MOBI files,
15 see lib/librarian/README.md
16 * `Solr <https://lucene.apache.org/solr/>`_ server if you want to search
21 Set up the database with::
23 ./manage.py syncdb --migrate
25 Run the dev server with::
29 Some tasks (like generating e-books) run in a seperate
30 Celery process by default, so you'll also need to run::
32 ./manage.py celeryd --loglevel=INFO
34 Or, if you don't want to run a separate Celery daemon, set this
35 in your ``localsettings.py``::
37 CELERY_ALWAYS_EAGER = True
42 Setup your server in fabfile.py and do::
44 fab <your_server_name> deploy
46 Initial deploy will stop and ask you to provide a localsettings.py file.
47 A sample localsettings.py will be put on your server, as well as
48 sample configuration for `Nginx <http://nginx.org/>`_,
49 `Gunicorn <http://gunicorn.org/>`_ and
50 `Supervisord <http://supervisord.org/>`_.
56 Books are represented as XML files.
57 You can import XML files from a directory by running::
59 ./manage.py importbooks ../books
61 Or you can publish a single XML by using publishing form in admin,
62 or the publishing API.