first version

This commit is contained in:
2026-07-14 20:10:17 +02:00
commit 4040b4fdd9
32 changed files with 2176 additions and 0 deletions
+19
View File
@@ -0,0 +1,19 @@
from django.contrib import admin
from django.shortcuts import redirect
from django.urls import include, path
from osiris.api import api
admin.site.site_header = "Osiris"
admin.site.site_title = "Osiris"
admin.site.index_title = "Medication & pulse tracking"
urlpatterns = [
path("api/", api.urls),
# Sits under /admin/ so it inherits the admin's styling and login, but must
# come before the admin's own catch-all patterns.
path("admin/", include("tracker.urls")),
path("admin/", admin.site.urls),
# The Today page is the app, so send the root straight to it.
path("", lambda request: redirect("tracker:today")),
]