File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed
Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change 88# Copyright (c) 2022 Francesco Bartoli
99# Copyright (c) 2022 Luca Delucchi
1010# Copyright (c) 2022 Krishna Lodha
11- # Copyright (c) 2024 Tom Kralidis
11+ # Copyright (c) 2025 Tom Kralidis
1212#
1313# Permission is hereby granted, free of charge, to any person
1414# obtaining a copy of this software and associated documentation
4949import pygeoapi .api .processes as processes_api
5050import pygeoapi .api .stac as stac_api
5151import pygeoapi .api .tiles as tiles_api
52- import pygeoapi .admin as admin_api
52+
53+ if settings .PYGEOAPI_CONFIG ['server' ].get ('admin' ):
54+ import pygeoapi .admin as admin_api
5355
5456
5557def landing_page (request : HttpRequest ) -> HttpResponse :
Original file line number Diff line number Diff line change 55# Abdulazeez Abdulazeez Adeshina <[email protected] > 66#
77# Copyright (c) 2020 Francesco Bartoli
8- # Copyright (c) 2024 Tom Kralidis
8+ # Copyright (c) 2025 Tom Kralidis
99# Copyright (c) 2022 Abdulazeez Abdulazeez Adeshina
1010#
1111# Permission is hereby granted, free of charge, to any person
5858import pygeoapi .api .processes as processes_api
5959import pygeoapi .api .stac as stac_api
6060import pygeoapi .api .tiles as tiles_api
61- import pygeoapi .admin as admin_api
6261from pygeoapi .openapi import load_openapi_document
6362from pygeoapi .config import get_config
6463from pygeoapi .util import get_api_rules
7170OPENAPI = load_openapi_document ()
7271
7372if CONFIG ['server' ].get ('admin' ):
73+ import pygeoapi .admin as admin_api
7474 from pygeoapi .admin import Admin
7575
7676p = Path (__file__ )
You can’t perform that action at this time.
0 commit comments