Skip to content

learner9753/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

  • Python 2.7
  • All packages listed in requirements.txt
  • Sass>=3.2

How to deploy (development version)

  1. Checkout the source code from Github and enter the directory

  2. Install libraries (we recommend using pip):

    pip install -r requirements.txt git submodule update --init

  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:

    ./manage.py migrate

  5. Run the server

    ./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).

Bundled software

Authors

Releases

No releases published

Packages

No packages published

Languages

  • Python 61.7%
  • HTML 14.6%
  • JavaScript 14.0%
  • CSS 9.4%
  • Shell 0.3%