Translate your first django CMS page¶
In this tutorial you connect a Django site to Ponyglot and get your first page translated, in the order the dashboard’s Getting started guides you through. By the end you will have:
a site in Ponyglot that knows your stack and your languages,
the connector installed on your site and synced,
one page translated into German, waiting in your CMS as a draft,
approved it by publishing it, so your translation memory learned its first texts.
Allow about 15 minutes once your account and Django project are ready, plus time to review the translation. This tutorial uses a versioned django CMS page. For app models, follow Translate your first model object.
Before you start¶
You need:
an account with an organization and the admin or owner role; during early access, request an invitation,
a Python 3.10+, Django 5.2+, django CMS 5.1+ project with djangocms-versioning 2.7+ configured, which you can install packages into and deploy,
English source content and German enabled in Django and django CMS, with one published English page that has no German translation yet,
permission to edit and publish that page in django CMS,
a subscription covering the site for the translation step. An organization owner can choose one under Billing (see Manage billing and check usage). Connecting and importing existing content work before subscribing.
Use a test page whose translated version you are comfortable publishing. Publishing at the end of this tutorial makes that translation visible according to your site’s normal rules.
If you use a staging environment, set up its own Ponyglot site first. You can practice translation and review there; staging approvals won’t teach the shared memory.
Add your site¶
If you already created a staging site with the staging guide, open it and continue at Connect it below.
On your organization’s page, Getting started shows a card per site with its progress and the next step. Without a site yet, choose Add your site.
Each site’s progress on the organization page.¶
Fill in:
Field |
Example |
|---|---|
Name |
Acme website |
Base URL |
|
Source language |
English |
Adapters |
django CMS; also django-parler if your project uses it |
Engines |
DeepL for this English-to-German example |
Then add the target languages, for example German and French. Content is only sent to the engines you enable here. The screenshots show a site with both django CMS and django-parler; the page translation works with the django CMS connector alone.
Connect it¶
Open the site. Getting started is a list of five steps: finished ones are ticked with their result, the current one is open. Any step can be opened to read ahead.
The current step, “Connect it”, with the commands for your stack.¶
The commands are tailored to the adapters you chose. First create an API key: scroll to API keys on the site’s page, enter a name such as “Production”, and choose Create API key. The next page shows the key once, and the same commands with the key filled in:
Copy the key now: Ponyglot stores only a hash of it.¶
In your project’s Python environment, install the connector from PyPI:
$ pip install "djangocms-ponyglot[versioning]"
Add these apps to your existing INSTALLED_APPS, and configure Ponyglot in settings.py:
import os
INSTALLED_APPS += [
"ponyglot",
"djangocms_ponyglot",
]
PONYGLOT = {
"API_KEY": os.environ["PONYGLOT_API_KEY"],
"SOURCE_LANGUAGE": "en",
}
Set PONYGLOT_API_KEY to the key you copied, using your project’s environment configuration.
Keep the key out of version control. Django doesn’t load a .env file unless your project
has configured that. The web process and management commands both need this variable.
Then run:
$ python manage.py migrate
$ python manage.py ponyglot check
For additional adapters and language configuration, see Install and configure a connector.
The status next to the step changes from Waiting for your site to connect… to Connected as
soon as the check reaches Ponyglot. The command should end with Connected to site “…”
with the expected site name and list German as a writable target language. If the name is
wrong, correct PONYGLOT_API_KEY and repeat the check. Fix any language warnings before
continuing.
Tip
If it stays on waiting, open Troubleshooting in the step: a curl command shows whether
your key reaches the API.
Send your content¶
The next step, First sync, sends your existing content once:
$ python manage.py ponyglot backfill
Nothing is translated yet. Ponyglot now knows your pages and objects, and the existing translations: they are imported as approved, so nothing is translated twice.
For this first translation, you will run the sync manually below. Afterward, set up a regular sync with Run the sync so editors don’t have to run commands.
Translate one page¶
Start small: one page, one language.
Three steps done; pick a page and a language.¶
Choose your test page and German, then Translate. If Ponyglot asks for confirmation, review the estimate before continuing.
On the site’s page in the Ponyglot dashboard, scroll to Jobs and find the new job for German. Refresh the page while its Status is Queued or Running. When it shows Succeeded, fetch the result:
$ python manage.py ponyglot sync
The translation arrives as a German draft. Nothing is published automatically. If you ran the sync before the job succeeded, run it again now.
Approve it in your CMS¶
Open the page in django CMS and choose Language › Ponyglot translations in the toolbar. The dialog shows the German draft:
The translations dialog in django CMS.¶
Choose Review draft, check the German page, correct it if you like, and publish it. Publishing approves the translation. Report that approval and your corrections to Ponyglot:
$ python manage.py ponyglot sync
On a production site, open Memory in the Ponyglot dashboard, filter to English → German, and search for a source text from the page. Its approved German wording is now available for reuse without another engine charge.
On a site marked Staging site of, no new memory entry is expected: staging approvals stay out of the shared memory. The translation is still approved on the staging site.
Back in the dashboard, all five steps are ticked: You’re set up.
If you get stuck¶
What you see |
What to do |
|---|---|
The page isn’t offered for translation |
Publish its English source, check it isn’t excluded, and run |
German isn’t a writable language |
Check German is configured in your project and as a target language in Ponyglot, then run |
Translation needs a subscription |
Ask the organization owner to check Billing and that this site is covered. |
The job shows Failed |
Read the error beneath its status in Jobs and resolve it before requesting the translation again. |
The job finished but no draft appeared |
Run |
The dialog offers Apply to draft |
An editor has changed the target draft. Review those edits before choosing to apply the waiting translations. |
What you learned¶
Getting started detects each step from what happened: you never tick anything.
The connector syncs in both directions: it sends what changed and brings translations back.
Translations arrive as drafts. Editors approve them by publishing; production-site approvals teach the translation memory, while staging approvals stay separate.
Next steps¶
Translate in django CMS: the toolbar dialog in daily work.
Translate models in the admin: products, posts and other models.
Manage the glossary keeps brand names and key terms consistent.
See what changes and what is reused demonstrates the savings on your next edit.
Run the sync keeps the site up to date automatically.