From c7a0d05a55fe80789126b754f088a6cefa68b434 Mon Sep 17 00:00:00 2001 From: EncryptEx Date: Fri, 1 Sep 2023 11:58:50 +0200 Subject: [PATCH 1/2] initialize component --- app/settings.py | 1 + reimbursment/__init__.py | 0 reimbursment/admin.py | 3 +++ reimbursment/apps.py | 6 ++++++ reimbursment/migrations/__init__.py | 0 reimbursment/models.py | 3 +++ reimbursment/views.py | 3 +++ 7 files changed, 16 insertions(+) create mode 100644 reimbursment/__init__.py create mode 100644 reimbursment/admin.py create mode 100644 reimbursment/apps.py create mode 100644 reimbursment/migrations/__init__.py create mode 100644 reimbursment/models.py create mode 100644 reimbursment/views.py diff --git a/app/settings.py b/app/settings.py index 6226cba..dd260a1 100644 --- a/app/settings.py +++ b/app/settings.py @@ -74,6 +74,7 @@ 'event', 'event.messages', 'event.meals', + 'reimbursment', ] MIDDLEWARE = [ diff --git a/reimbursment/__init__.py b/reimbursment/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/reimbursment/admin.py b/reimbursment/admin.py new file mode 100644 index 0000000..8c38f3f --- /dev/null +++ b/reimbursment/admin.py @@ -0,0 +1,3 @@ +from django.contrib import admin + +# Register your models here. diff --git a/reimbursment/apps.py b/reimbursment/apps.py new file mode 100644 index 0000000..f6a4ab2 --- /dev/null +++ b/reimbursment/apps.py @@ -0,0 +1,6 @@ +from django.apps import AppConfig + + +class ReimbursmentConfig(AppConfig): + default_auto_field = 'django.db.models.BigAutoField' + name = 'reimbursment' diff --git a/reimbursment/migrations/__init__.py b/reimbursment/migrations/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/reimbursment/models.py b/reimbursment/models.py new file mode 100644 index 0000000..71a8362 --- /dev/null +++ b/reimbursment/models.py @@ -0,0 +1,3 @@ +from django.db import models + +# Create your models here. diff --git a/reimbursment/views.py b/reimbursment/views.py new file mode 100644 index 0000000..91ea44a --- /dev/null +++ b/reimbursment/views.py @@ -0,0 +1,3 @@ +from django.shortcuts import render + +# Create your views here. From b0cd241ece228e0e0d8cbc64de99bc71dac2edd8 Mon Sep 17 00:00:00 2001 From: EncryptEx Date: Sat, 2 Sep 2023 21:23:55 +0200 Subject: [PATCH 2/2] added reimb urls --- app/urls.py | 3 +++ reimbursment/urls.py | 6 ++++++ 2 files changed, 9 insertions(+) create mode 100644 reimbursment/urls.py diff --git a/app/urls.py b/app/urls.py index e9bc7d3..fb51d32 100644 --- a/app/urls.py +++ b/app/urls.py @@ -41,6 +41,9 @@ if is_installed("friends"): urlpatterns.append(path('friends/', include('friends.urls'))) +if is_installed("reimbursment"): + urlpatterns.append(path('reimbursment/', include('reimbursment.urls'))) + # Error handlers handler404 = "app.views.handler_error_404" handler500 = "app.views.handler_error_500" diff --git a/reimbursment/urls.py b/reimbursment/urls.py new file mode 100644 index 0000000..9729bba --- /dev/null +++ b/reimbursment/urls.py @@ -0,0 +1,6 @@ +from django.urls import path + +from reimbursment import views + +urlpatterns = [ +]