Skip to main content

Intuitive text editing for the Django Admin.

Project description

:warning: This project is in early development and has bugs, contribution is welcome.

# django-text

Edit content in the Django Admin.

## Installation and usage

Install the package with pip.

```shell
$ pip install django-text
```

Add `'text'` to your installed packages.

```python
# settings.py

INSTALLED_APPS = (
# ...
'text',
)
```

Run `migrate`.

```shell
$ python manage.py migrate
```

Add `editable` tags to your templates.

```html
<h1>{% editable header %}</h1>

<div class="content">
{% editable text_body %}
</div>
```

Now add text nodes with the corresponding names in the Django Admin.
Currently raw text and [markdown](http://daringfireball.net/projects/markdown/) is supported.

![django-text in action](/docs/printscreen.png)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

django-text-1.1.1.tar.gz (50.8 kB view details)

Uploaded Source

File details

Details for the file django-text-1.1.1.tar.gz.

File metadata

  • Download URL: django-text-1.1.1.tar.gz
  • Upload date:
  • Size: 50.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for django-text-1.1.1.tar.gz
Algorithm Hash digest
SHA256 7bf3434cba072c650380787336b4019e1969dea95874b4b4f12a99b01114f281
MD5 7c4e9730c0d9a0e6a1874f379f6a6288
BLAKE2b-256 81c3faf96f94b4e242921760a98da01b637d27f5bfdd5fa82ea4a4a866cf5b71

See more details on using hashes here.

Provenance

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page