-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
installation section improved, start section dedicated to user manage…
…ment
- Loading branch information
Showing
12 changed files
with
145 additions
and
57 deletions.
There are no files selected for viewing
Binary file not shown.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,57 +1,45 @@ | ||
Gisquick plugin | ||
=============== | ||
Gisquick QGIS plugin | ||
==================== | ||
|
||
As it was noticed in previous subsection, very important part is represented | ||
by :ref:`Gisquick QGIS plugin <gisquick-qgis-plugin>`. | ||
Very important part of Gisquick publishing platform is represented by | ||
**Gisquick QGIS plugin**. Gisquick plugin builds Gisquick bundle from | ||
any QGIS desktop project. It allows adding base layers, creating | ||
topics from layers list, setting access constraints or project | ||
expiration. | ||
|
||
This plugin is part of ``gisquick`` source code, so all necessary files | ||
are downloaded with cloning process. But let us stick to this order of | ||
things. | ||
Source code of the plugin is available from GitHub | ||
`gisquick-qgis-plugin | ||
<https://github.com/gislab-npo/gisquick-qgis-plugin>`_ repository and | ||
licenced under `GNU General Public License | ||
<https://github.com/gislab-npo/gisquick-qgis-plugin/blob/master/LICENSE>`__ | ||
version 2 or later. | ||
|
||
Gisquick plugin builds GIS.lab web bundle from any QGIS desktop project. | ||
It allows adding base layers, creating topics from layers list, | ||
setting access constraints or project expiration. | ||
Plugin can be installed into QGIS in the standard way by | ||
:menuselection:`Plugins --> Manage and Install Plugins`. | ||
|
||
.. _gisquick-qgis-plugin-logo: | ||
|
||
.. figure:: img/gisquick-qgis-plugin-logo.svg | ||
:align: center | ||
:width: 150 | ||
.. important:: |imp| Currently Gisquick plugin **is not** available | ||
from QGIS Plugins Repository. Therefore is neccessary to register | ||
new repository, see URL bellow | ||
|
||
Gisquick QGIS plugin icon. | ||
:: | ||
https://raw.githubusercontent.com/gislab-npo/gisquick-qgis-plugin/gh-pages/qgis-plugins.xml | ||
|
||
.. figure:: ../img/installation/qgis-plugin-repo.png | ||
|
||
All installed QGIS plugins are usually located in ``.qgis/python/plugins`` | ||
directory. | ||
If ``gisquick`` repository is correctly cloned, for GIS.lab QGIS plugin | ||
installation just symbolic link is enough. Create it from ``gisquick`` | ||
source code directory. | ||
Add Gisquick repository. | ||
|
||
.. code:: sh | ||
.. figure:: ../img/installation/qgis-plugin-install.png | ||
|
||
ln -s $(pwd)/qgis/gisquick ~/.qgis2/python/plugins/gisquick | ||
Install Gisquick QGIS plugin. | ||
|
||
After successfull installation, a new icon should appear in QGIS | ||
plugin toolbar. | ||
|
||
Let's continue in QGIS environment. Create ordinary QGIS project or use some | ||
existing one. | ||
|
||
.. _qgis-project: | ||
|
||
.. figure:: img/qgis-project.png | ||
:align: center | ||
:width: 750 | ||
|
||
Some QGIS project. | ||
|
||
Go to :menuselection:`Plugins --> Manage and install plugins` and | ||
in ``Installed`` tab of dialog window find **Gisquick plugin**. | ||
Activate this plugin by checking the toggle beside it, see figure | ||
:num:`#install-gisquick-plugin`. | ||
|
||
.. _install-gisquick-plugin: | ||
.. _gisquick-qgis-plugin-logo: | ||
|
||
.. figure:: img/install-gisquick-plugin.png | ||
.. figure:: ../img/logo.png | ||
:align: center | ||
:width: 750 | ||
|
||
Gisquick QGIS plugin activation. | ||
:width: 64 | ||
|
||
Gisquick QGIS plugin icon. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
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. | ||
|
||
At first, someone needs to log in to the server where is running | ||
Gisquick Django application. | ||
|
||
In the case of virtual server deployed using Vagrant, see | ||
:doc:`vagrant`, log in by | ||
|
||
.. code-block:: bash | ||
$ vagrant ssh | ||
When running Gisquick by Docker containers, see :doc:`docker`, at | ||
first Django app docker must be identified. The following command will | ||
enter Django shell. | ||
|
||
.. code-block:: bash | ||
$ docker exec -it `docker ps -qf "ancestor=gisquick/django"` django-admin shell | ||
Then you can create users programmatically | ||
|
||
.. code-block:: python | ||
from django.contrib.auth import get_user_model | ||
get_user_model().objects.create_user('user1', email='user@gisquick.org', | ||
password='user1', first_name='User1') | ||
Django shell can be quited by | ||
|
||
.. code-block:: python | ||
exit() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters