The following variables can be added to or edited in the project’s local_settings.py
:
Custom django map server module other than qdjango (QGIS-Server provider)
Custom django modules that is possible to add, i.e. g3w-admin-frontend
(https://github.com/g3w-suite/g3w-admin-frontend) module and other third part django modules.
G3W-SUITE accessory modules:
g3w-admin-frontend
(https://github.com/g3w-suite/g3w-admin-frontend)caching
filemanager
editing
Path to geo data directory (shp, Spatialite, raster, etc..).
Important
Last part of path could be common with QGIS project datasource path. I.e.:
QGIS project: <datasource>/<path>/<to>/project_data/<geodata>.shp</datasource>
local_settings.py: DATASOURCE_PATH = /<local_server_<path>/<to>/project_data
Mandatory.
- Default is ['shp', 'xls'], set download data format. Values possible:
- shp: download into Esri Shape format.
- xls: download into Excel format
- gpx: download into GPS format (only for Point and Line layers)
Default is False, set tot True to activate reset user password by email workflow. If set to True remember to set Django emailing settings (https://docs.djangoproject.com/en/2.2/topics/email/).
Default is 'GET', set to 'POST' to change default http call method.
Default is False
, set to True
for activate G3W-SUITE frontend portal like g3w-admin-frontend
.
If it's set to True
base url path for G3W-SUITE admin section become /admin/.
Module name added to G3WADMIN_LOCAL_MORE_APPS
to use as portal-frontend. I.e.:
G3WADMIN_LOCAL_MORE_APPS = [ ... 'frontend', ... ] FRONTEND = True FRONTEND_APP = 'frontend'
Default is True
, set to False
for don't show bottom attribution informations.
A custom url from to load custom static files as images, css, etc..
Main admin section logo image.
Mandatory is set G3WSUITE_CUSTOM_STATIC_URL
Main admin section reduced logo image.
Mandatory is set G3WSUITE_CUSTOM_STATIC_URL
Login logo image.
Mandatory is set G3WSUITE_CUSTOM_STATIC_URL
G3W-SUITE html page title. If is not set, title is: g3w-admin for admin section and g3w-client for webgis client.
Favorite icon image.
Mandatory is set G3WSUITE_CUSTOM_STATIC_URL
A list of custom css files added to admin pages and to the client.
Mandatory is set G3WSUITE_CUSTOM_STATIC_URL
.
I.e.:
G3WSUITE_CUSTOM_CSS = [ G3WSUITE_CUSTOM_STATIC_URL +'css/custom.css' ]
Custom webgis client search section title.
- Search url endpoint for 'searches calling', default ows.
- ows: by wms search;
- api: by g3w-suite layer vector API.
A list of dict of custom links to add into main top bar of webgis client. I.e.:
G3W_CLIENT_HEADER_CUSTOM_LINKS = [ { 'url': 'https://gis3w.it', 'title': 'Gis3W company', 'i18n', True, #(False as default value) 'target': '_blank' 'img': 'https://gis3w.it/wp-content/uploads/2016/10/logo_qgis-1-100x100.png?x22227' }, { 'title': 'Modal 1', 'content': '<p>Html example content to show in modal</p>', 'type': 'modal', 'position': 10 }, ]
i18n (optional) set True if you want lent client try to translate title.
A dict to customize QGIS-server legend image generate with WMS GetLegendGraphics request. I.e.:
G3W_CLIENT_LEGEND = { 'color': 'red', 'fontsize': 8, 'transparent': True, 'boxspace': 4, 'layerspace': 4, 'layertitle': True, 'layertitlespace': 4, 'symbolspace': None, 'iconlabelspace': 2, 'symbolwidth': 8, 'symbolheight': 4 }
Custom properties settings for webgis right panel section (default, width 33%). A the moment only width is managed. I.e.:
G3W_CLIENT_RIGHT_PANEL = { 'width': 33 }
Default is False
. Set to True
for remove from webgis TOC vector layer empty, without data.
Settings params for editing
module.
Default is True
. Set to False
for not show editing button activate/deactivate into layers project list.
Default is False
. Set to True
to render possible give to anonymous user editing permissions.
Default is False
. Set to True
to log users editing action into database.
Settings params for caching
module
A name to identify caching
Default is Disk
to save tile on a disk. Set to Memcache
for to use Memcached caching framework (https://www.memcached.org/)
Path to disk space where to save tile created by tilestache if TILESTAHCE_CACHE_TYEPE
is se to Disk
.
Mandatory, strign to use as token for internal WMS call for caching module.
Settings params for filemanager
module.
Mandatory, path to disk space where to CRUD geo data files i.e. Shp Raster, etc.
Default is 5, max number files to upload simultaneously.
Default is False
, set to True
to import DataPlotly settings from QGIS project.
Default is http://localhost:8080/ors/v2/
, this is the endpoint for Openrouteservice API.
Openrouteservice API key, optional, can be blank if the key is not required by the endpoint.
List of available Openrouteservice profiles, default: ("driving-car", "driving-hgv")