This commit is contained in:
Mohamed Nouffer
2022-03-23 09:21:17 +05:30
parent ef32611b85
commit acbe659e2e
3 changed files with 9 additions and 20 deletions

View File

@ -51,6 +51,7 @@ INSTALLED_APPS = [
'leaflet',
'leaflet_admin_list',
'rog.apps.RogConfig',
'django_filters',
]
MIDDLEWARE = [
@ -165,3 +166,7 @@ LEAFLET_CONFIG = {
'TILES': [('Satellite', 'https://server.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer/tile/{z}/{y}/{x}', {'attribution': '© ESRI', 'maxZoom': 19}),
('Streets', 'http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', {'attribution': '© Contributors'})]
}
REST_FRAMEWORK = {
'DEFAULT_FILTER_BACKENDS': ['django_filters.rest_framework.DjangoFilterBackend']
}