Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
94 lines (62 sloc) 2.2 KB
Pathagar is a simple book server. It uses the OPDS spec:
Books can be added via the admin interface, as well as via the command
line, in batch (using CSV files, JSON files or a directory with EPUB
files), through the command:
python addbooks
python addepub
Format of CSV file
To add books from a CSV file:
python addbooks books.csv
The format of the CSV file is like:
"Path to ebook file","Title","Author","Description"
If you need to add more fields, please use the JSON file.
Format of JSON file
To add books from a JSON file:
python addbooks --json books.json
The format of the JSON file is like::
"book_path": "Path to ebook file",
"a_title": "Title",
"a_author": "Author",
"a_status": "Published",
"a_summary": "Description",
"tags": "set, of, tags"
You can add more fields. Please refer to the Book model.
* django-tagging
* django-sendfile
* Install Django. Pathagar is known to be working in Django 1.3,
but it may work in 1.2. This should work:
easy_install Django
* Install dependencies,
easy_install django-tagging
easy_install django-sendfile
* In the Pathagar folder edit to suite your needs and
* In the Pathagar folder, run
python syncdb
You will be asked to create an admin user during this stage.
* To run the server, run
python runserver
This starts a server listening on localhost, port 8000
* With your browser, access http://localhost:8000 and see if the index
page comes up. If it comes up, click on "Add books" in the footer to
start adding books. You will be asked for a username/password. This is
the admin username/password you supplied while running syncdb.
NOTE: You can also mass add books via the command line through CSV files
or by simply pointing to a directory with a set of EPUB files.
* To run the server in a production environment, look at Django deployment
docs at :