Refactoring
* create package from compensation/urls * renames modules inside of compensation/urls and compensation/views
This commit is contained in:
		
							parent
							
								
									d272d911ff
								
							
						
					
					
						commit
						0c6eba7c4b
					
				
							
								
								
									
										8
									
								
								compensation/urls/__init__.py
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										8
									
								
								compensation/urls/__init__.py
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,8 @@
 | 
			
		||||
"""
 | 
			
		||||
Author: Michel Peltriaux
 | 
			
		||||
Organization: Struktur- und Genehmigungsdirektion Nord, Rhineland-Palatinate, Germany
 | 
			
		||||
Contact: michel.peltriaux@sgdnord.rlp.de
 | 
			
		||||
Created on: 16.11.21
 | 
			
		||||
 | 
			
		||||
"""
 | 
			
		||||
from .urls import *
 | 
			
		||||
@ -6,7 +6,7 @@ Created on: 24.08.21
 | 
			
		||||
 | 
			
		||||
"""
 | 
			
		||||
from django.urls import path
 | 
			
		||||
from compensation.views import *
 | 
			
		||||
from compensation.views.compensation import *
 | 
			
		||||
 | 
			
		||||
urlpatterns = [
 | 
			
		||||
    # Main compensation
 | 
			
		||||
@ -6,7 +6,7 @@ Created on: 24.08.21
 | 
			
		||||
 | 
			
		||||
"""
 | 
			
		||||
from django.urls import path
 | 
			
		||||
from compensation.views import *
 | 
			
		||||
from compensation.views.eco_account import *
 | 
			
		||||
 | 
			
		||||
urlpatterns = [
 | 
			
		||||
    path("", index_view, name="acc-index"),
 | 
			
		||||
@ -6,7 +6,7 @@ Created on: 24.08.21
 | 
			
		||||
 | 
			
		||||
"""
 | 
			
		||||
from django.urls import path
 | 
			
		||||
from compensation.views import *
 | 
			
		||||
from compensation.views.payment import *
 | 
			
		||||
 | 
			
		||||
urlpatterns = [
 | 
			
		||||
    path('<intervention_id>/new', new_payment_view, name='pay-new'),
 | 
			
		||||
@ -9,7 +9,7 @@ from django.urls import path, include
 | 
			
		||||
 | 
			
		||||
app_name = "compensation"
 | 
			
		||||
urlpatterns = [
 | 
			
		||||
    path("", include("compensation.comp_urls")),
 | 
			
		||||
    path("acc/", include("compensation.account_urls")),
 | 
			
		||||
    path("pay/", include("compensation.payment_urls")),
 | 
			
		||||
    path("", include("compensation.urls.compensation")),
 | 
			
		||||
    path("acc/", include("compensation.urls.eco_account")),
 | 
			
		||||
    path("pay/", include("compensation.urls.payment")),
 | 
			
		||||
]
 | 
			
		||||
@ -5,6 +5,6 @@ Contact: michel.peltriaux@sgdnord.rlp.de
 | 
			
		||||
Created on: 16.11.21
 | 
			
		||||
 | 
			
		||||
"""
 | 
			
		||||
from .compensation_views import *
 | 
			
		||||
from .eco_account_views import *
 | 
			
		||||
from .payment_views import *
 | 
			
		||||
from .compensation import *
 | 
			
		||||
from .eco_account import *
 | 
			
		||||
from .payment import *
 | 
			
		||||
 | 
			
		||||
@ -12,7 +12,7 @@ from compensation.tables import CompensationTable
 | 
			
		||||
from intervention.models import Intervention
 | 
			
		||||
from konova.contexts import BaseContext
 | 
			
		||||
from konova.decorators import *
 | 
			
		||||
from konova.forms import RemoveModalForm, SimpleGeomForm, NewDocumentForm
 | 
			
		||||
from konova.forms import RemoveModalForm, SimpleGeomForm
 | 
			
		||||
from konova.utils.documents import get_document, remove_document
 | 
			
		||||
from konova.utils.generators import generate_qr_code
 | 
			
		||||
from konova.utils.message_templates import FORM_INVALID, IDENTIFIER_REPLACED, DATA_UNSHARED_EXPLANATION
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user