mirror of
https://github.com/Hopiu/wagtail.git
synced 2026-05-19 12:41:12 +00:00
Added docs for removing the demo app to complement the Debian/Ubuntu installs.
This commit is contained in:
parent
46a00aa269
commit
1a47bc6f61
1 changed files with 28 additions and 0 deletions
|
|
@ -17,6 +17,8 @@ to your deployment preferences. The canonical version is at
|
|||
`github.com/torchbox/wagtail/blob/master/scripts/install/ubuntu.sh
|
||||
<https://github.com/torchbox/wagtail/blob/master/scripts/install/ubuntu.sh>`_.
|
||||
|
||||
Once you've experimented with the demo app and are ready to build your pages via your own app you can `remove the demo app`_ if you choose.
|
||||
|
||||
On Debian
|
||||
~~~~~~~~~
|
||||
|
||||
|
|
@ -33,6 +35,8 @@ to your deployment preferences. The canonical version is at
|
|||
`github.com/torchbox/wagtail/blob/master/scripts/install/debian.sh
|
||||
<https://github.com/torchbox/wagtail/blob/master/scripts/install/debian.sh>`_.
|
||||
|
||||
Once you've experimented with the demo app and are ready to build your pages via your own app you can `remove the demo app`_ if you choose.
|
||||
|
||||
On OS X
|
||||
~~~~~~~
|
||||
|
||||
|
|
@ -121,3 +125,27 @@ with a regular Django project.
|
|||
.. _the Wagtail codebase: https://github.com/torchbox/wagtail
|
||||
.. _PostgreSQL: http://www.postgresql.org
|
||||
.. _Elasticsearch: http://www.elasticsearch.org
|
||||
|
||||
_`Remove the demo app`
|
||||
=====================
|
||||
|
||||
Once you've experimented with the demo app and are ready to build your pages via your own app you can remove the demo app if you choose.
|
||||
|
||||
``PROJECT_ROOT`` should be where your project is located (e.g. /usr/local/django) and ``PROJECT`` is the name of your project (e.g. mywagtail)::
|
||||
|
||||
export PROJECT_ROOT=/usr/local/django
|
||||
export PROJECT=mywagtail
|
||||
cd $PROJECT_ROOT/$PROJECT
|
||||
./manage.py sqlclear demo | psql -Upostgres $PROJECT -f -
|
||||
psql -Upostgres $PROJECT << EOF
|
||||
BEGIN;
|
||||
DELETE FROM wagtailcore_site WHERE root_page_id IN (SELECT id FROM wagtailcore_page WHERE content_type_id IN (SELECT id FROM django_content_type where app_label='demo'));
|
||||
DELETE FROM wagtailcore_page WHERE content_type_id IN (SELECT id FROM django_content_type where app_label='demo');
|
||||
DELETE FROM auth_permission WHERE content_type_id IN (SELECT id FROM django_content_type where app_label='demo');
|
||||
DELETE FROM django_content_type WHERE app_label='demo';
|
||||
DELETE FROM wagtailimages_rendition;
|
||||
DELETE FROM wagtailimages_image;
|
||||
COMMIT;
|
||||
EOF
|
||||
rm -r demo media/images/* media/original_images/*
|
||||
perl -pi -e"s/('demo',|WAGTAILSEARCH_RESULTS_TEMPLATE)/#\1/" $PROJECT/settingsbase.py
|
||||
|
|
|
|||
Loading…
Reference in a new issue