L

lettravox

LettraVox est un outil de publication littéraire en ligne. Il permet aux écrivains de partager des textes de différents styles (poésie, romans, nouvelles…) en ligne.

Name Last Update
articles Loading commit data...
bugreport Loading commit data...
captchaproxy Loading commit data...
site_media Loading commit data...
src Loading commit data...
static Loading commit data...
subscriptions Loading commit data...
templates Loading commit data...
texte Loading commit data...
utils Loading commit data...
.gitignore Loading commit data...
LICENCE Loading commit data...
README.md Loading commit data...
default_settings.py Loading commit data...
djprofiler.py Loading commit data...
lettravox.fcgi Loading commit data...
local_settings.py.example Loading commit data...
manage.py Loading commit data...
pytest.ini Loading commit data...
requirements.txt Loading commit data...
settings.py Loading commit data...
slughifi.py Loading commit data...
urls.py Loading commit data...
wsgi.py Loading commit data...

LettraVox

LettraVox is a litterature web publishing tool, it aims to offer to writters a space to publish texts from different styles (poetry, books, novelas...) online.

It takes care about typography and readability, each text is available in two formats (online html and offline PDF). User feedback is available to comment the text or to report errors.

Install debian packages:

sudo apt-get install libjpeg-dev python-pip texlive-latex-extra \
    texlive-lang-french texlive-humanities latex2html python-dev \
    libpng12-dev libfreetype6-dev

Install archlinux packages:

sudo pacman -S openjpeg python2 python2-virtualenv texlive-latexextra \
    texlive-langextra texlive-humanities latex2html \
    libpng freetype2 sqlite

Create a virtualenv

virtualenv -p /usr/bin/python2.7 lettravox_venv
source lettravox_venv/bin/activate

Install python requirements:

pip install --pre -r requirements.txt

Then copy local_settings

cp local_settings.py{.example,}

And edit local_settings.py to set a SECRET_KEY. For this, you can use the following command:

python -c 'import random; import string; print "".join([random.SystemRandom().choice(string.digits + string.letters) for i in range(100)])'

Bootstrap the database

./manage.py migrate

You must be able to start a test server now (don't forget to add DEBUG = True in your local_settings.py):

./manage.py runserver

Please note THIS IS A TEST SERVER. Do NOT use it in production. Lettravox is in fact a Django application. Please take time to read Django documentation to know how to properly serves Lettravox on a production server.

You may now want to add your first user (admin). You must kill the test server (CTRL+C) and then enter the following command:

./manage.py createsuperuser

You are done