diff options
author | Étienne Loks <etienne.loks@peacefrogs.net> | 2011-10-26 00:56:27 +0200 |
---|---|---|
committer | Étienne Loks <etienne.loks@peacefrogs.net> | 2011-10-26 00:56:27 +0200 |
commit | 58a66e44e2f23704c1f7ee6819bd5e40cac18c0f (patch) | |
tree | 95fa05e06f74d2694029dbb803cf413c571f6103 /docs/source/upgrade.rst | |
parent | d2b70d4ec09634479749911fe8aa3b4a30e2a02e (diff) | |
download | Papillon-58a66e44e2f23704c1f7ee6819bd5e40cac18c0f.tar.bz2 Papillon-58a66e44e2f23704c1f7ee6819bd5e40cac18c0f.zip |
Correct documentation
Diffstat (limited to 'docs/source/upgrade.rst')
-rw-r--r-- | docs/source/upgrade.rst | 32 |
1 files changed, 30 insertions, 2 deletions
diff --git a/docs/source/upgrade.rst b/docs/source/upgrade.rst index 61c2c30..24f7d44 100644 --- a/docs/source/upgrade.rst +++ b/docs/source/upgrade.rst @@ -38,12 +38,12 @@ Get the new sources. Extract the tarball (from the download `directory <http://w Copy updated files to your installation (be careful to put trailing slash):: $ PAPILLON_PATH=/var/local/django/papillon/ - $ rsync -raP /tmp/papillon/ $PAPILLON_PATH + $ sudo rsync -raP /tmp/papillon/ $PAPILLON_PATH As the Git is now used you can remove (if any) Subversion directory in your new installation:: $ cd $PAPILLON_PATH - $ find . -name ".svn" -exec rm -rf {} \; + $ sudo find . -name ".svn" -exec rm -rf {} \; New dependencies **************** @@ -68,6 +68,21 @@ Change the manualy set definition of the project path by the lines:: import os.path PROJECT_PATH = os.path.dirname(os.path.abspath(__file__)) +Be careful: PROJECT_PATH has no trailing slash. So for every variable +using PROJECT_PATH don't forget (if necessary) to add a slash. + +For instance if you have:: + + TEMPLATE_DIRS = ( + PROJECT_PATH + 'templates', + ) + +Change it to:: + + TEMPLATE_DIRS = ( + PROJECT_PATH + '/templates', + ) + Migrate to new version of db configuration. The lines:: DATABASE_ENGINE = 'sqlite3' # 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'ado_mssql'. @@ -103,6 +118,19 @@ You have to change MEDIA_URL and ADMIN_MEDIA_PREFIX. If there is no EXTRA_URL an Otherwise set the full URL. +Add South to the list of installed applications (before papillon.polls):: + + INSTALLED_APPS = ( + 'django.contrib.auth', + 'django.contrib.admin', + 'django.contrib.contenttypes', + 'django.contrib.sessions', + 'django.contrib.sites', + 'django.contrib.markup', + 'south', + 'papillon.polls', + ) + Update database *************** |