Skip to content

Instantly share code, notes, and snippets.

@philipn
Created November 25, 2011 23:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save philipn/1394669 to your computer and use it in GitHub Desktop.
Save philipn/1394669 to your computer and use it in GitHub Desktop.
== Updating to 0.2 ==
1. Move your current localsettings.py out of the sapling directory and rename it:
$ mv sapling/localsettings.py sapling/../localsettings.py.bak
2. Activate your virtualenv:
$ source env/bin/activate
3. Install localwiki inside your virtualenv:
$(env) python setup.py install
4. Run the new initialization commands:
$(env) localwiki-manage init_data_dir
then move over your localsettings file:
$(env) localsettings.py.bak env/share/localwiki/conf/localsettings.py
run the rest of the init commands:
$(env) localwiki-manage init_settings
$(env) localwiki-manage syncdb
$(env) localwiki-manage migrate
$(env) localwiki-manage collectstatic
$(env) localwiki-manage reset_permissions
The biggest change is that site-specific user data, like uploaded images and the localsettings.py file, are now stored -inside- the virtualenv. So -do not- delete your virtualenv without first moving the share/localwiki directory out of it! :)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment