Skip to content
This repository has been archived by the owner on Jan 11, 2019. It is now read-only.

Clearer explanaton of local dev docs database setup steps #9

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 10 additions & 5 deletions docs/how-to/local_development.rst
Original file line number Diff line number Diff line change
Expand Up @@ -64,12 +64,17 @@ Aldryn uses Postgres, so you will need a `PostgreSQL <http://www.postgresql.org>
locally too.

In the Aldryn control panel, the *Manage this website* section offers options for
downloading and restoring databases. Create a new backup of your site, refresh the
page, and download the backup you have just created.
downloading and restoring databases:

Unpack the .tar file that has been downloaded. This contains the database, media files, and more.
Using your local PostgreSQL database client, import the ``database.dump`` file, and make sure that
the new database's name and any permissions match those in the local site's settings.
#. create a new backup of your site
#. refresh the page
#. download the backup you have just created

The .tar file that has been downloaded. This contains the database, media files, and more.

#. unpack the .tar file that has been downloaded
#. using your local PostgreSQL database client, import the ``database.dump`` file
#. make sure that the new database's name and any permissions match those in the local site's ``settings.py``

Use local settings
------------------
Expand Down