Konova views

* splits konova/views.py into separate files in new module
    * view files can now be found in /konova/views/...
* introduces first class based view AbstractLogView
    * implemented for Ema, Intervention, Compensation and EcoAccount
This commit is contained in:
2022-08-19 10:25:27 +02:00
parent 9654f6873d
commit 7e68d12ee9
17 changed files with 387 additions and 368 deletions
+6 -3
View File
@@ -19,7 +19,10 @@ from django.urls import path, include
from konova.settings import SSO_SERVER, SSO_PUBLIC_KEY, SSO_PRIVATE_KEY, DEBUG
from konova.sso.sso import KonovaSSOClient
from konova.views import logout_view, home_view, get_geom_parcels, get_geom_parcels_content, map_client_proxy_view
from konova.views.logout import logout_view
from konova.views.geometry import get_geom_parcels, get_geom_parcels_content
from konova.views.home import home_view
from konova.views.map_proxy import map_client_proxy_view
sso_client = KonovaSSOClient(SSO_SERVER, SSO_PUBLIC_KEY, SSO_PRIVATE_KEY)
urlpatterns = [
@@ -45,5 +48,5 @@ if DEBUG:
path('__debug__/', include(debug_toolbar.urls)),
]
handler404 = "konova.views.get_404_view"
handler500 = "konova.views.get_500_view"
handler404 = "konova.views.error.get_404_view"
handler500 = "konova.views.error.get_500_view"