Koriander CMS
Koriander CMS combines static site generation like Hugo and a dynamic CMS experience like Ghost into one application.
Koriander is early stage and powers the author's personal blog at https://www.justus.pw. Read more about Koriander.
Try Koriander CMS
Here's how you can try Koriander CMS on your computer.
First, ensure that your computer can run the pipx. Learn how to install pipx.
Once pipx runs on your computer, install Koriander by typing the following command in your terminal.
pipx install koriander
When the installation finishes, your terminal should print the following:
[…]
These apps are now globally available
- koriander
done! ✨ 🌟 ✨
Run the following command in a new directory:
koriander
This should print a start up log and give you a log in link:
Log in with the following link:
http://localhost:8321/dev-login/XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/
Operations to perform:
Apply all migrations: admin, auth, contenttypes, koriander, koriander_user, sessions
Running migrations:
Applying contenttypes.0001_initial... OK
…
Log in with the following link:
http://localhost:8321/dev-login/XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/
…
WARNING: This is a development server. Do not use it in a production setting. Use a production WSGI or ASGI server instead.
For more information on production servers see: https://docs.djangoproject.com/en/6.0/howto/deployment/
Open the http://localhost:8321/dev-login/XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/ in your browser. You should now see the Koriander CMS.
When you first run the Koriander CMS, you should see a welcome message saying Koriander installed successfully.
Edit the current page by following the Edit page link in the top menu.
When you finish editing your page, render your entire Koriander CMS website with the render command:
koriander render
When you run koriander render in a terminal, it should print the following:
Writing static files to public/static...
157 static files copied to '/private/var/folders/k8/jnlz0xdn5jd48zttf3ktv7200000gn/T/tmp.BWupFFLrzH/public/static', 461 post-processed, 25 skipped due to conflict.
Static files collected to public/static
Seeding 0 redirect address(es)...
Seeding 6 URL(s) from sitemap.xml...
Rendered 404.html
Page has markdown body, but no summary, index.html
200 /index.html (from seed)
200 /robots.txt (from seed)
/Users/debian/.local/pipx/venvs/koriander/lib/python3.13/site-packages/koriander/views.py:221: UnorderedObjectListWarning: Pagination may yield inconsistent results with an unordered object_list: <class 'koriander.models.Tag'> QuerySet.
paginator = Paginator(
200 /tags/index.html (from /sitemap.xml)
200 /index.xml (from /sitemap.xml)
200 /index.atom (from /sitemap.xml)
200 /index.atom.xml (from /sitemap.xml)
200 /redirects.json (from /sitemap.xml)
Crawled 7 page(s).
Render complete. Output in: public
koriander render outputs your site in a public directory.
You can upload this site directory to a static site host like GitHub Pages, Cloudflare, or Netlify.
Develop
Here's what you need to develop develop and maintain Koriander CMS.
Requirements
First, make sure that you've installed the following programs on your computer
Verify that uv works by running uv --version in your terminal. On the author's computer,
this prints the folllowing:
uv 0.11.19 (aarch64-apple-darwin)
Verify that direnv works by running direnv --version in your terminal. On
the author's computer, this prints the following:
2.37.1
Install packages
You're now ready to install all PyPI packages that Koriander CMS needs. Install the packages with the following command:
uv sync
Enable direnv
Enable direnv for this directory with the following command:
direnv allow
When direnv allow runs, it prints the following:
direnv: loading ~/projects/koriander/dev/.envrc
direnv: export +PWCMS_DEBUG +PWCMS_SECRET_KEY ~XPC_SERVICE_NAME
Migrate the development database
Create and migrate your development database with migrate command:
uv run src/koriander/manage.py migrate
This prints something similar to this:
You've enabled Django debug mode
System check identified some issues:
WARNINGS:
koriander.Page: (models.W047) SQLite does not support unique constraints with nulls distinct.
HINT: A constraint won't be created. Silence this warning if you don't care about it.
Operations to perform:
Apply all migrations: admin, auth, contenttypes, koriander, koriander_user, sessions
[…]
Start the development server with the following command:
uv run src/koriander/manage.py runserver
When the server starts, it prints the following:
You've enabled Django debug mode
You've enabled Django debug mode
Watching for file changes with StatReloader
Watching for file changes with StatReloader
Performing system checks...
System check identified no issues (0 silenced).
June 28, 2026 - 06:23:49
Django version 6.0.4, using settings 'koriander.settings'
Starting development server at http://127.0.0.1:8000/
Quit the server with CONTROL-C.
WARNING: This is a development server. Do not use it in a production setting. Use a production WSGI or ASGI server instead.
For more information on production servers see: https://docs.djangoproject.com/en/6.0/howto/deployment/
Test code
Use the following command to run all tests:
bin/test.sh
Format code
Use the following command to format your code:
bin/format.sh
Migrate database
Use this command to migrate your database:
uv run src/koriander/manage.py migrate
Create new migration files
When you change Koriander CMS models, run this command to make a corresponding migration file:
uv run src/koriander/manage.py migrate --update
Add a new syntax to CodeMirror
Perform the following steps to add a new syntax to the CodeMirror editor
in codemirror/editor.mjs.
- Find the syntax library name. Example:
@codemirror/lang-css - Install and save the syntax library:
npm --prefix codemirror install --save @codemirror/lang-css - Import the syntax library in
codemirror/editor.mjs:export * from "codemirror"; export { html } from "@codemirror/lang-html"; export { json } from "@codemirror/lang-json"; +export { css } from "@codemirror/lang-css"; - Rebuild CodeMirror:
bin/build-third-party-dependencies
- Add the new syntax to
src/koriander/static/codemirror/codemirror_widget.js:if (syntax === "html") { extensions.push(CM.html()); } else if (syntax === "json") { extensions.push(CM.json()); +} else if (syntax === "css") { + extensions.push(CM.css()); } else if (syntax === undefined) { console.warn("No syntax defined for CodeMirror widget", textarea); } else { console.warn( `Unrecognized syntax ${syntax} defined for CodeMirror widget`, textarea, ); }
Configuration variables
See the docs/configuration.md document for information on what environment variables you can pass to Koriander.
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file koriander-0.8.3.tar.gz.
File metadata
- Download URL: koriander-0.8.3.tar.gz
- Upload date:
- Size: 1.2 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.11.19 {"installer":{"name":"uv","version":"0.11.19","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1213551167f093d6a340d4c3973262cda14f0745868590ece4cf5687e8eff6fd
|
|
| MD5 |
950efd8f445177076aa335cddb16ece3
|
|
| BLAKE2b-256 |
d3605f3632da9ad70c73a6c5b0838c1985838097507445149f9135f2286179c0
|
File details
Details for the file koriander-0.8.3-py3-none-any.whl.
File metadata
- Download URL: koriander-0.8.3-py3-none-any.whl
- Upload date:
- Size: 1.2 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.11.19 {"installer":{"name":"uv","version":"0.11.19","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f56d9eb06cb5bd6f762e8db3869fd7f50c56981b71ce4939538109d8063b8787
|
|
| MD5 |
cc3fcdf9cf95f3ad312e4ad958a34c10
|
|
| BLAKE2b-256 |
00fc1593df9adb00f340f0dd229c6fb0ea0d405120e0638da47cf8c0e0bef8ae
|