Skip to content

Commit

Permalink
[Fixes GeoNode#6918] Removal of QGIS support (GeoNode#6919)
Browse files Browse the repository at this point in the history
* [Cleanup and Refactor] Remove QGIS server backend dependencies

* [Cleanup and Refactor] Remove QGIS server backend dependencies

* - Fix LGTM issues
  • Loading branch information
Alessio Fabiani authored and mattiagiupponi committed Feb 23, 2021
1 parent 589ee85 commit 55decbf
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions geonode/maps/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@

from django.conf.urls import url, include
from django.views.generic import TemplateView

from geonode import geoserver
from geonode.utils import check_ogc_backend
from geonode.monitoring import register_url_event

from . import views
Expand All @@ -30,10 +33,15 @@

new_map_view = views.new_map
existing_map_view = views.map_view
map_embed = views.map_embed
map_edit = views.map_edit
map_json = views.map_json
map_thumbnail = views.map_thumbnail

if check_ogc_backend(geoserver.BACKEND_PACKAGE):
new_map_view = views.new_map
existing_map_view = views.map_view
map_embed = views.map_embed
map_edit = views.map_edit
map_json = views.map_json
map_thumbnail = views.map_thumbnail

maps_list = register_url_event()(TemplateView.as_view(template_name='maps/map_list.html'))

urlpatterns = [
Expand Down

0 comments on commit 55decbf

Please sign in to comment.