From 899bd282475fb6418c9ad126abf74ff4b6b820a6 Mon Sep 17 00:00:00 2001 From: mpeltriaux Date: Tue, 16 Nov 2021 08:58:15 +0100 Subject: [PATCH] Refactoring * create package from compensation/views --- compensation/account_urls.py | 2 +- compensation/comp_urls.py | 2 +- compensation/payment_urls.py | 2 +- compensation/views/__init__.py | 10 ++++++++++ 4 files changed, 13 insertions(+), 3 deletions(-) create mode 100644 compensation/views/__init__.py diff --git a/compensation/account_urls.py b/compensation/account_urls.py index a2bfd6f8..e87fdf50 100644 --- a/compensation/account_urls.py +++ b/compensation/account_urls.py @@ -6,7 +6,7 @@ Created on: 24.08.21 """ from django.urls import path -from compensation.views.eco_account_views import * +from compensation.views import * urlpatterns = [ path("", index_view, name="acc-index"), diff --git a/compensation/comp_urls.py b/compensation/comp_urls.py index 8eb7c48d..4e603e47 100644 --- a/compensation/comp_urls.py +++ b/compensation/comp_urls.py @@ -6,7 +6,7 @@ Created on: 24.08.21 """ from django.urls import path -from compensation.views.compensation_views import * +from compensation.views import * urlpatterns = [ # Main compensation diff --git a/compensation/payment_urls.py b/compensation/payment_urls.py index d208b07d..5ec2b0a5 100644 --- a/compensation/payment_urls.py +++ b/compensation/payment_urls.py @@ -6,7 +6,7 @@ Created on: 24.08.21 """ from django.urls import path -from compensation.views.payment_views import * +from compensation.views import * urlpatterns = [ path('/new', new_payment_view, name='pay-new'), diff --git a/compensation/views/__init__.py b/compensation/views/__init__.py new file mode 100644 index 00000000..9b7c1c52 --- /dev/null +++ b/compensation/views/__init__.py @@ -0,0 +1,10 @@ +""" +Author: Michel Peltriaux +Organization: Struktur- und Genehmigungsdirektion Nord, Rhineland-Palatinate, Germany +Contact: michel.peltriaux@sgdnord.rlp.de +Created on: 16.11.21 + +""" +from .compensation_views import * +from .eco_account_views import * +from .payment_views import * \ No newline at end of file