This repository has been archived by the owner. It is now read-only.
Site Web pour PyConFr de 2013 à 2015
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
conf/locale/fr/LC_MESSAGES
fixtures
pyconfr
var
.gitignore
README.txt
bootstrap.py
buildout.cfg
local_settings.py.sample
makemessages.sh
manage.py
requirements.txt
setup.py

README.txt

How Start
=========

Installation
------------

May be you have a specific pyconfr user::

    ~$ cd /home/pyconfr
    /home/pyconfr$ sudo -u pyconfr bash

Clone the app::

    /home/pyconfr$ git clone https://github.com/AFPy/pyconfr.git
    /home/pyconfr$ cd pyconfr

Dev install::

    /home/pyconfr/pyconfr$ python bootstrap.py
    /home/pyconfr/pyconfr$ ./bin/buildout

Db init::

    /home/pyconfr/pyconfr$ ./bin/django syncdb
    /home/pyconfr/pyconfr$ ./bin/django loaddata fixtures/*


Add flat pages (pages à propos et lieu)::

     /home/pyconfr/pyconfr$ wget http://dl.afpy.org/pyconfr2013-cms-pages.json
     /home/pyconfr/pyconfr$ ./bin/django loaddata pyconfr2013-cms-pages.json


Start it in dev mode::

    /home/pyconfr/pyconfr$ ./bin/django runserver

Start behind apache proxy::

    /home/pyconfr/pyconfr$ ./bin/django run_gunicorn localhost:8002 -D

or in production::

    /home/pyconfr/pyconfr$ sudo -u pyconfr ./bin/django run_gunicorn localhost:8002 -D

Traductions
-----------

Extraction des messages (en ignorant les applis de bases, et afin d'ajouter les
trads utiles uniquement)::

    /home/pyconfr/pyconfr$ sh makemessages.sh

Edition du po::

    /home/pyconfr/pyconfr$ vim conf/locale/fr/LC_MESSAGES/django.po

Compiler les nouveaux messages::

    /home/pyconfr/pyconfr$ ./bin/django compilemessages