---
title: "Django integration"
description: "Django TinyMCE component."
canonical_url: "https://www.tiny.cloud/docs/tinymce/latest/django-cloud/"
md_url: "https://www.tiny.cloud/docs/tinymce/5/django/index.md"
version: "5"
last_updated: "2024-03-26T08:09:19Z"
tokens: 555
---
Important This page documents TinyMCE 5. For new projects, Tiny recommends using the latest, most up-to-date version. [See TinyMCE 8 documentation](../../latest/django-cloud/).
# Django integration

> **Important:** This Integration is maintained by a third-party developer. Tiny Technologies, Inc. bears no responsibility for this integration, which is not covered by the Tiny Self-Hosted Software License Agreement. For issues related to the integration, contact the third-party project directly.
For information on adding TinyMCE to a Django project, try using the Python-based `django-tinymce` package. For information on setting up `django-tinymce`, see: [the django-tinymce Documentation](https://django-tinymce.readthedocs.io/en/latest/index.html).
To use an newer version of TinyMCE, use the Tiny Cloud or statically host a manually downloaded copy of TinyMCE.

## Using the Tiny Cloud with django-tinymce

To load TinyMCE from the Tiny Cloud, update the project’s `settings.py` file:

- Set `TINYMCE_JS_URL` to the Tiny Cloud CDN.
- Ensure `TINYMCE_COMPRESSOR` is set to `False`.

For example:

```py
TINYMCE_JS_URL = '{cdnurl}'
TINYMCE_COMPRESSOR = False
```

## Using self-hosted TinyMCE with django-tinymce

If you’d rather download and install the script manually:

1. Get the package from [TinyMCE Downloads](/get-tiny).
2. Unzip the package and move the `'path/to/tinymce/'` directory into the django project.
3. Add a URL path to the `tinymce` directory.
4. Add the relevant configuration setting:

  - If you do not need the `TINYMCE_COMPRESSOR` (`TINYMCE_COMPRESSOR = False`), add `TINYMCE_JS_URL` to the project’s `settings.py` file pointing to `tinymce/tinymce.min.js`.

Such as:

```py
TINYMCE_JS_URL = os.path.join(MEDIA_URL, "path/to/tinymce/tinymce.min.js")
  TINYMCE_COMPRESSOR = False
```
  - If you do need the `TINYMCE_COMPRESSOR` (`TINYMCE_COMPRESSOR = TRUE`), add `TINYMCE_JS_ROOT` to the project’s `settings.py` file pointing to the `tinymce/` root directory.

Such as:

```py
TINYMCE_JS_ROOT = os.path.join(MEDIA_URL, "path/to/tinymce")
 TINYMCE_COMPRESSOR = True
```
