Skip to content

Commit

Permalink
user management: small improvements, clarification Vagrant vs Docker
Browse files Browse the repository at this point in the history
  • Loading branch information
landam committed Jul 28, 2017
1 parent 0af5140 commit 10e1839
Showing 1 changed file with 20 additions and 9 deletions.
29 changes: 20 additions & 9 deletions docs/installation/user-management.rst
Original file line number Diff line number Diff line change
@@ -1,12 +1,15 @@
User management
===============

Currently it is not possible to manage user accounts from web
interface. The only way is to use terminal on the server and manage
accounts manually.
Currently user accounts can be managed only manually from Django
shell.

At first, log in to the server with running Gisquick Django
application.
At first, log in to Gisquick Django application server. The procedure
can vary when running virtual server by Vagrant or in Docker
containers.

Vagrant
-------

In the case of virtual server deployed using Vagrant, see
:doc:`vagrant`, log in by
Expand All @@ -24,11 +27,14 @@ Afterwards on the server enter Django shell
.. _vagrant-user:

.. note:: Virtual server provided by Vagrant comes with predefined
.. tip:: Virtual server provided by Vagrant comes with predefined
``vagrant`` user account. This account can be used for testing
purposes. Password for this account is the same as the name,
ie. *vagrant*.


Docker
------

When running Gisquick in Docker containers, see :doc:`docker`, at
first Django app docker container must be identified. The following
command will also enter Django shell.
Expand All @@ -37,7 +43,12 @@ command will also enter Django shell.
$ docker exec -it `docker ps -qf "ancestor=gisquick/django"` django-admin shell
Then new users can be created programmatically
Create new user account
-----------------------

After entering Django shell, a new user account can be created
programmatically (in example below a new account ``user1`` with
password ``user1`` will be created)

.. code-block:: python
Expand All @@ -51,7 +62,7 @@ To quit Django shell type
exit()
Then new user can log in into Gisquick application.
Then the new user can log in into Gisquick application.

.. figure:: ../img/installation/login-screen.png

Expand Down

0 comments on commit 10e1839

Please sign in to comment.