Skip to content

BibliotekaOtwartejNauki/wolnelektury

 
 

Repository files navigation

License

AGPL Logo

Copyright © 2008,2009,2010 Fundacja Nowoczesna Polska <fundacja@nowoczesnapolska.org.pl>

For full list of contributors see AUTHORS section at the end. 

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU Affero General Public License for more details.

You should have received a copy of the GNU Affero General Public License
along with this program.  If not, see <http://www.gnu.org/licenses/>.

Dependencies

  • All packages listed in requirements.txt
  • Python libraries from lib directory
  • Django applications from apps directory

How to deploy (development version)

  1. Checkout the source code from Github

  2. Install libraries (we recommend using pip):

    pip install -r requirements.txt

  3. Setup your local configuration based on settings.py. You need to generate a new SECRET_KEY, database stuff and domain related stuff.

  4. Populate database:

    ./wolnelektury/manage.py syncdb ./wolnelektury/manage.py migrate

  5. Run the server

    ./wolnelektury/manage.py runserver

  6. Import some books which are available on http://www.wolnelektury.pl or on bitbucket mirror: http://bitbucket.org/lqc/wlbooks/ If you use Bitbucket, you also need Mercurial to fetch books (you can install it using: pip install mercurial). After downloading books, log into administration, go to Books and choose 'Browse' to select book file, then fire 'Import book' to upload it. Some books have invalid XML, so you can get an error (just ignore it and look for other books).

  7. We provide localization of the software in following languages: Polish, Russian, German, English, Spanish, French and Lithuanian. Translation strings are based on gettext and can be found under 'locale' dir. There are also JavaScript files for jQuery countdown plugin (static/js/jquery.countdown-*.js).

Full list of used open-source software

External

django

django-pagination

django-rosetta

Django South

lxml

feedparser

Internal (means we hacked on sources of those):

django-compress

django-chunks

django-newtagging

Authors

Releases

No releases published

Packages

No packages published

Languages

  • Python 81.1%
  • JavaScript 17.9%
  • Shell 1.0%