Skip to content

Commit

Permalink
Improve the language
Browse files Browse the repository at this point in the history
  • Loading branch information
batiste committed Dec 22, 2015
1 parent ef28664 commit 46e80ed
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions doc/commands.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,25 +4,25 @@ Commands

.. contents::

Import and export content between diffent hosts usgint the API
Import and export content between diffent hosts usgin the API
================================================================

Gerbi CMS comes with a simple API that uses Django REST Framework. You can enable the
API by setting the PAGE_API_ENABLED in the CMS settings to true.
API by setting the PAGE_API_ENABLED in the CMS settings to `True`.

When that is done, the host that host the CMS application should have an API at the
address <address of the cms>/api/
When this is done, your host should have an API at the following
address <address of your cms>/api/

Pulling data from a host: pages_pull
---------------------------------------

From example if you enabled the API on your local development instance::
From example if you enabled the API on your local development instance you can do::

$ python manage.py pages_pull staff_account_name:password
Fetching page data on http://127.0.0.1:8000/api/
data/download.json written to disk

This command accept the option `--filename` and `--host`
The default for the host is the localhost (127.0.0.1:8000). This command accept the option `--filename` and `--host`

Pushing data to a host: pages_push
-------------------------------------
Expand Down

0 comments on commit 46e80ed

Please sign in to comment.