[collector] start the app that will collect parts data

This commit is contained in:
bronsen 2025-03-12 21:17:08 +01:00
parent 56a03452d8
commit 592b84625e
4 changed files with 21 additions and 1 deletions

6
collector/apps.py Normal file
View file

@ -0,0 +1,6 @@
from django.apps import AppConfig
class CollectorConfig(AppConfig):
default_auto_field = "django.db.models.BigAutoField"
name = "collector"

7
collector/urls.py Normal file
View file

@ -0,0 +1,7 @@
from django.urls import path
from . import views
urlpatterns = [
path("", views.index, name="index"),
]

6
collector/views.py Normal file
View file

@ -0,0 +1,6 @@
from django.http import HttpResponse
def index(request) -> HttpResponse:
return HttpResponse("hello tutorial")

View file

@ -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),
]