20 lines
646 B
Python
20 lines
646 B
Python
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")),
|
|
]
|