Django Admin

djangosdk registers Conversation and Message models in Django Admin, giving you a built-in interface for browsing and managing AI interactions.

What's Available

Conversation Admin

  • List view with id, agent_class, provider, model, created_at, total_cost

  • Search by id, agent_class

  • Filter by provider, model

  • Read-only detail view with all fields

Message Admin

  • List view with id, conversation, role, created_at, prompt_tokens, completion_tokens

  • Search by content

  • Filter by role

  • Inline display of tool_calls and thinking_content

Enabling Admin

Ensure django.contrib.admin is in INSTALLED_APPS (it is by default in new Django projects) and that you have run migrations:

Visit /admin/djangosdk/conversation/ to see conversations.

Customizing Admin

You can extend the admin classes for your needs:

Last updated

Was this helpful?