From 592b84625e3eb9f48a027fb5adb893d4955d408b Mon Sep 17 00:00:00 2001
From: bronsen <kontakt+gitcommit@nrrd.de>
Date: Wed, 12 Mar 2025 21:17:08 +0100
Subject: [PATCH] [collector] start the app that will collect parts data

---
 collector/apps.py  | 6 ++++++
 collector/urls.py  | 7 +++++++
 collector/views.py | 6 ++++++
 config/urls.py     | 3 ++-
 4 files changed, 21 insertions(+), 1 deletion(-)
 create mode 100644 collector/apps.py
 create mode 100644 collector/urls.py
 create mode 100644 collector/views.py

diff --git a/collector/apps.py b/collector/apps.py
new file mode 100644
index 0000000..f2ab94b
--- /dev/null
+++ b/collector/apps.py
@@ -0,0 +1,6 @@
+from django.apps import AppConfig
+
+
+class CollectorConfig(AppConfig):
+    default_auto_field = "django.db.models.BigAutoField"
+    name = "collector"
diff --git a/collector/urls.py b/collector/urls.py
new file mode 100644
index 0000000..5119061
--- /dev/null
+++ b/collector/urls.py
@@ -0,0 +1,7 @@
+from django.urls import path
+
+from . import views
+
+urlpatterns = [
+    path("", views.index, name="index"),
+]
diff --git a/collector/views.py b/collector/views.py
new file mode 100644
index 0000000..ac03d0c
--- /dev/null
+++ b/collector/views.py
@@ -0,0 +1,6 @@
+
+from django.http import HttpResponse
+
+
+def index(request) -> HttpResponse:
+    return HttpResponse("hello tutorial")
diff --git a/config/urls.py b/config/urls.py
index 1b9db2b..a1445ed 100644
--- a/config/urls.py
+++ b/config/urls.py
@@ -16,8 +16,9 @@ Including another URLconf
 """
 
 from django.contrib import admin
-from django.urls import path
+from django.urls import include, path
 
 urlpatterns = [
+    path("collector/", include("collector.urls")),
     path("admin/", admin.site.urls),
 ]