diff options
Diffstat (limited to 'docs/fr/upgrade.rst')
-rw-r--r-- | docs/fr/upgrade.rst | 91 |
1 files changed, 46 insertions, 45 deletions
diff --git a/docs/fr/upgrade.rst b/docs/fr/upgrade.rst index 19d4c1d..8e3f583 100644 --- a/docs/fr/upgrade.rst +++ b/docs/fr/upgrade.rst @@ -211,47 +211,49 @@ Déplacez vos anciens fichiers statiques vers le nouveau répertoire : Configuration du serveur Web ............................ -If you are using Apache and WSGI to serve your Chimère, change your WSGI -configuration file to point to the correct settings: -**value_of_your_localname.settings**. +Si vous utilisez Apache et WSGI pour mettre à disposition votre Chimère, +changez la configuration pour pointer vers le chemin correct de +configuration : **nom_de_votre_projet.settings**. -Change your webserver directive to point to the correct static directory from -**your_chimere_path/chimere/static** to -**your_chimere_path/your_local_name/static**. +Changez la directive de votre serveur web pour qu'elle pointe vers le bon +répertoire statique de **votre_chemin_vers_chimere/chimere/static** en +**votre_chemin_vers_chimere/nom_de_votre_projet/static**. Version 2.0 -> master +++++++++++++++++++++ -Update settings and static files. +Mettez à jour les paramètres et les fichiers statiques. .. code-block:: bash cp $CHIMERE_PATH/example_project/settings.py $CHIMERE_LOCALNAME ./manage.py collectstatic -Migrate database ----------------- +Migration de la base de données +------------------------------- Version 1.1 -> 1.2 ****************** -Migration scripts test your installation before making changes so you probably -won't have any lost but by precaution before running these scripts don't forget -to backup your database. -You can also make a copy of your current database into a new database and make -the new installation to this new database. +Les scripts de migration testent votre installation avant de faire des +changements vous n'aurez donc probablement pas de perte mais par précaution +avant de les lancer n'oubliez pas de faire une sauvegarde de votre base de +données. +Vous pouvez aussi faire une copie de votre base de données actuelle dans une +nouvelle base et faire la mise à jour sur cette nouvelle base de données. -The gdal binding for python is necessary to run the upgrade scripts (available -in the python-gdal package in Debian). +La bibliothèque GDAL pour python est nécessaire pour faire fonctionner ces +scripts (disponible avec le paquet *python-gdal* dans Debian). -If you run the migration scripts in a production environnement stop the old -instance of Chimère before executing the migration script. Perhaps prepare the -web server to point to the new installation before doing the database upgrade -(cf. next paragraph). +Si vous souhaitez lancer le script de migration dans un environnement de +production stoppez l'instance de Chimère avant d'exécuter le script de +migration. -In *settings.py* verify that **chimere.scripts** is in the *INSTALLED_APPS*. +Dans le fichier *settings.py* vérifiez que **chimere.scripts** fait parti +des *INSTALLED_APPS*. -After that in the chimere directory just execute the script. +Après cela dans le répertoire d'installation de Chimère exécutez simplement +le script. .. code-block:: bash @@ -261,7 +263,7 @@ After that in the chimere directory just execute the script. Version 1.2 -> 2.0 ****************** -Django South is now used to manage database migrations. +Django South est maintenant utilisé pour les migrations de base de données. .. code-block:: bash @@ -270,17 +272,18 @@ Django South is now used to manage database migrations. ./manage.py migrate chimere 0001 --fake # fake the database initialisation ./manage.py migrate chimere -A description field is now available for markers. If you would like to move -values of an old *Property model* to this new field, a script is available. +Un champ descriptif est maintenant disponible pour les points d'intérêts. Si +vous souhaitez bouger un ancien *modèle de propriété* vers ce nouveau champ, +un script est disponible. .. code-block:: bash cd $CHIMERE_APP_PATH ../chimere/scripts/migrate_properties.py - # follow the instructions + # suivez les instructions -From 2.0 to master -****************** +Version 2.0 -> master +********************* .. code-block:: bash @@ -288,8 +291,8 @@ From 2.0 to master ./manage.py syncdb ./manage.py migrate chimere -Update translations -------------------- +Mise à jour des traductions +--------------------------- Version 1.1 -> 1.2 ****************** @@ -307,26 +310,24 @@ Version 1.2 -> 2.0 -> master cd $CHIMERE_PATH/chimere django-admin compilemessages -Forcing the refresh of visitor's web browser cache --------------------------------------------------- +Forcer le rafraîchissement du cache du navigateur des utilisateurs +------------------------------------------------------------------ -If major changes in the javascript has been done between versions, many of your -users could experience problems. There are many tricks to force the refresh -of their cache. One of them is to change the location of statics files. To do -that edit your local_settings.py and change:: +Des changements importants au niveau des styles et du javascript sont fait entre +les différentes version. Cela peut provoquer des dysfonctionnements important +chez des utilisateurs dont le navigateur web a conservé les anciennes versions +de certains fichiers en cache. Il y a pas mal de moyens de forcer le +rafraîchissement de leur cache. Un de ceux-ci est de changer le chemin vers les +fichiers statiques. Pour faire cela éditez votre fichier *local_settings.py* et +changez :: STATIC_URL = '/static/' -to:: +en :: STATIC_URL = '/static/v2.0.0/' -Then in the static directory: - -.. code-block:: bash - - cd $CHIMERE_APP_PATH/static - ln -s `pwd` v2.0.0 - -Restart the web server to apply this changes. +Changez alors la directive concernant les fichiers statiques sur le fichier de +configuration de votre serveur web. +Redémarrez alors le serveur web pour appliquer les changements. |