Runique — a Rust web framework inspired by Django
Runique brings the Django developer experience to Rust. It is a batteries-included Rust web framework with a typed admin panel, type-safe forms, database models and migrations, authentication and built-in CSRF/CSP security — built on Axum, SeaORM and Tera.
Why a Django-like framework in Rust?
Rust has fast, low-level web building blocks, and full frameworks too: Cot is inspired by Django, Loco by Rails. Runique follows the Django approach: instead of wiring an ORM, a templating engine, an admin and a form layer by hand, you get them integrated and convention-driven, while keeping Rust's type safety and performance.
A typed admin panel
Like the Django admin, Runique serves a full CRUD back office from your models with the
typed ModelAdmin builder: list display, search, side filters, pagination, bulk actions and
permission checks. See the admin documentation.
Type-safe forms and models
Declare a model once and Runique derives the SeaORM entity, the SQL migration and a type-safe
form with server-side validation. Read about
forms and
models and the model! macro.
Batteries included: auth, sessions, security
Authentication, persistent sessions, password reset, CSRF protection, a configurable CSP and host validation ship in the box. Explore authentication, sessions and security middleware.
Django → Runique at a glance
| Django (Python) | Runique (Rust) |
|---|---|
| models.py | model! macro → SeaORM entity + migration |
| forms.py | #[form] type-safe forms |
| admin.py | ModelAdmin typed admin panel |
| urls.py | urlpatterns! routing macro |
| Django templates | Tera templates (auto-escaped) |
| ORM (QuerySet) | SeaORM + search! query DSL |
| middleware | ordered middleware slots (CSRF, CSP, sessions…) |
A deeper side-by-side is on the Django vs Runique comparison page.
FAQ
Is there a Django-like web framework for Rust?
Yes, there are several. Runique is inspired by Django, and Cot models its API after Django too; both are batteries-included frameworks with an admin panel. Loco, for its part, is inspired by Rails.
Does Runique have an admin panel like Django admin?
Yes. It serves a full CRUD admin from your models, with search, filters, bulk actions and permissions, declared through the typed ModelAdmin builder: no generated code.
Which Django alternative should I choose in Rust?
Runique and Cot both follow the Django approach. The right choice depends on your needs: the Runique vs Cot page puts them side by side, feature by feature.