- REST API: 9 Read-Only-Endpunkte unter /api/v1/ für alle Kernmodelle (Destinatäre, Ländereien, Pächter, Förderungen, Konten, Verpachtungen, Verwaltungskosten, Kalender, Transaktionen) - Token-Authentifizierung via DRF TokenAuthentication - Management-Command `create_agent_token` für Agent-Tokens - Wissensbasis: knowledge/ mit Satzung, Richtlinien, Verfahren, Kontakte, Historie - Agent-Instructions: Datenzugriff-Sektion in AGENTS.md dokumentiert Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
25 lines
712 B
Python
25 lines
712 B
Python
from django.conf import settings
|
|
from django.conf.urls.static import static
|
|
from django.contrib import admin
|
|
from django.contrib.auth import views as auth_views
|
|
from django.urls import include, path
|
|
|
|
from stiftung.views import home
|
|
|
|
urlpatterns = [
|
|
path("api/v1/", include("stiftung.api_urls")),
|
|
path("", include("stiftung.urls")),
|
|
path("admin/", admin.site.urls),
|
|
# Authentication URLs
|
|
path(
|
|
"login/",
|
|
auth_views.LoginView.as_view(template_name="registration/login.html"),
|
|
name="login",
|
|
),
|
|
path("logout/", auth_views.LogoutView.as_view(), name="logout"),
|
|
|
|
]
|
|
|
|
if settings.DEBUG:
|
|
urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
|