From 3b63d13346bc3392c57859f6390a55863387f894 Mon Sep 17 00:00:00 2001 From: Nawa Date: Wed, 28 Nov 2012 14:20:55 +0100 Subject: Premières corrections, essentiellement sur install.rst MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/_build/html/install.html | 77 +++++++++++++++++++++---------------------- 1 file changed, 37 insertions(+), 40 deletions(-) (limited to 'docs/_build/html/install.html') diff --git a/docs/_build/html/install.html b/docs/_build/html/install.html index 2c0ea7f..3121524 100644 --- a/docs/_build/html/install.html +++ b/docs/_build/html/install.html @@ -3,16 +3,13 @@ - - Installation — Chimère 2.0 documentation - + Installation — Chimère v2.0 documentation - - + @@ -42,7 +39,7 @@
  • previous |
  • -
  • Chimère 2.0 documentation »
  • +
  • Chimère v2.0 documentation »
  • @@ -57,16 +54,16 @@ -Author:Étienne Loks +Author:Étienne Loks -date:2012-10-08 +date:2012-10-08 -Copyright:CC-BY 3.0 +Copyright:CC-BY 3.0 -

    This documents presents the installation of Chimère. -The version has been updated for version 2.0.0.

    +

    This document presents the installation of Chimère. +It has been updated for version 2.0.0.

    Prerequisites

    @@ -83,7 +80,7 @@ The version has been updated for version 2.0.0.

  • Beautiful Soup
  • python-simplejson
  • python-gdal
  • -
  • `unidecode <http://pypi.python.org/pypi/Unidecode>_
  • +
  • unidecode
  • lxml
  • jquery version 1.7.1 or better
  • jquery-ui
  • @@ -96,7 +93,7 @@ The version has been updated for version 2.0.0.

    @@ -110,21 +107,22 @@ The version has been updated for version 2.0.0.

    The simpliest way to obtain these packages is to get them from your favorite Linux distribution repositories. For instance on Debian Wheezy:

    -
    apt-get install python python-django python-django-south             \
    -    python-beautifulsoup tinymce apache2 libgeos-3.3.3 proj-bin gdal-bin \
    -    python-gdal python-lxml python-psycopg2 python-imaging gettext   \
    -    postgresql-9.1 postgresql-9.1-postgis libjs-jquery libjs-jquery-ui \
    -    python-django-celery python-simplejson gpsbabel \
    -    python-pyexiv2 python-feedparser javascript-common
    +
    apt-get install apache2 python python-django python-django-south \
    +    postgresql-9.1 gettext python-psycopg2 python-imaging \
    +    python-pyexiv2 python-beautifulsoup python-simplejson python-gdal \
    +    javascript-common python-lxml libjs-jquery libjs-jquery-ui \
    +    python-feedparser libgeos-3.3.3 proj-bin postgresql-9.1-postgis \
    +    gdal-bin tinymce gpsbabel python-django-celery \

    On Debian Squeeze (you need to activate backports):

    apt-get install -t squeeze-backports python-django libjs-jquery
     
    -apt-get install python python-django-south python-beautifulsoup tinymce \
    -    apache2 libgeos-3.2.0 proj-bin gdal-bin python-gdal python-lxml \
    -    python-psycopg2 python-imaging gettext postgresql-8.4 \
    -    postgresql-8.4-postgis libjs-jquery libjs-jquery-ui python-simplejson \
    -    gpsbabel python-pyexiv2 python-feedparser javascript-common
    +apt-get install apache2 python python-django python-django-south \ + postgresql-8.4 gettext python-psycopg2 python-imaging \ + python-pyexiv2 python-beautifulsoup python-simplejson python-gdal \ + javascript-common python-lxml libjs-jquery libjs-jquery-ui \ + python-feedparser libgeos-3.2.0 proj-bin postgresql-8.4-postgis \ + gdal-bin tinymce gpsbabel \

    If these packages do not exist in your distribution’s repository, please refer to the applications’ websites.

    @@ -186,7 +184,7 @@ git checkout v2.0 # checkout the desired version

    Create a custom project template

    -

    There a default project provided “example_project”. Copy and modify it (or +

    There a default project is provided (example_project). Copy and modify it (or get another project based on Chimere):

    cd $INSTALL_PATH/chimere
     cp -ra example_project mychimere_project
    @@ -194,12 +192,12 @@ cp -ra example_project mychimere_project

    Your project name is used for the name of the Python package of your template. As a Python package it should follow the rule of Python variable name: it must be at least one letter and can have a string of numbers, letters and -“_” to any length. Don’t begin the name by “_” because it has special -significance in Python.

    +underscores (“_”) to any length. Don’t begin the name by “_” because it has +special significance in Python.

    In your chimere application directory create local_settings.py to fit to your configuration. A base template is provided (local_settings.py.example) and short descriptions of -the more relevant fields are given below (at least check them). Most of theses +the more relevant fields are given below (at least check them). Most of these settings are initialized in settings.py.

    cd $INSTALL_PATH/chimere/mychimere_project
     cp local_settings.py.sample local_settings.py
    @@ -209,7 +207,7 @@ vim local_settings.py
    -Fields:
      +Fields:
      • DATABASES: parameters for the database
      • PROJECT_NAME: name of the project
      • SECRET_KEY: a secret key for a particular Django installation. This is @@ -252,12 +250,12 @@ chmod -R g+w /var/log/django/

        Compiling languages

        If your language is available in the locale directory of chimere, you will just -need to get it compiled. This can be done with (here, fr stands for french). +need to get it compiled. This can be done with (here, fr stands for french. Replace it with the appropriate language code):

        cd $INSTALL_PATH/chimere/chimere/
         django-admin compilemessages
        -

        If your language is not available, feel free to create the default po files and +

        If your language is not available, feel free to create the default po file and to submit it, contributions are well appreciated. Procedure is as follows:

        You first need to create the default po file (of course, replace fr according to the language you choose to create):

        @@ -292,10 +290,9 @@ an already populated instance!):

        Install mod_wsgi for apache:

        apt-get install libapache2-mod-wsgi
        -

        TODO: adapt apache-wsgi.conf -Create and edit a configuration for Chimère:

        -
        cp $INSTALL_PATH/chimere/apache/django.wsgi \
        -        $INSTALL_PATH/chimere/apache/mydjango.wsgi
        +

        TODO: adapt apache-wsgi.conf

        +

        Create and edit a configuration for Chimère:

        +
        cp $INSTALL_PATH/chimere/apache/django.wsgi $INSTALL_PATH/chimere/apache/mydjango.wsgi
         vim $INSTALL_PATH/chimere/apache/mydjango.wsgi
         cp $INSTALL_PATH/chimere/apache/apache-wsgi.conf /etc/apache2/sites-available/chimere
         vim /etc/apache2/sites-available/chimere
        @@ -303,13 +300,13 @@ vim /etc/apache2/sites-available/chimere
         mkdir /var/log/apache2/chimere/

        Adapt the files mydjango.wsgi (with the correct sys path) and Apache chimere.

        -

        To activate the website reload apache:

        +

        To activate the website, reload apache:

        a2ensite chimere
         /etc/init.d/apache2 reload

        If you encounter problem with the upload of files with Unicode chars in their -names activate the appropriate locale in Apache. On a Debian server with UTF-8 -as default encoding in the file /etc/apache2/envvars uncomment the following +names, activate the appropriate locale in Apache. On a Debian server with UTF-8 +as default encoding in the file /etc/apache2/envvars, uncomment the following line:

        . /etc/default/locale
        @@ -384,12 +381,12 @@ line:

      • previous |
      • -
      • Chimère 2.0 documentation »
      • +
      • Chimère v2.0 documentation »
    \ No newline at end of file -- cgit v1.2.3