Skip to main content
# django_rholang_editor

## Introduction

[Rholang](https://developer.rchain.coop/) is a new language for writing smart contracts that run on the RChain virtual machine.
You can find more in the [Rholang tutorial](https://developer.rchain.coop/tutorial)

##Usage

If you want to use the django form way and post the text in the rholang-editor. You may use as below.
```python
from django.forms import Form
from django_rholang_editor.fields import RholangTextFormField

class EditorForm(Form):
rho = RholangTextFormField()
```

There is multiple way to configure the attrs of the `RholangTextFormField`

```python
RholangTextFormField(
default_text="",
height="100px",
width="100%",
js_variable='editor'
)
```

`ARGS`


* default_text

implement the default text in the rholang text editor .

* height

the rholang editor widget height

* width

the rholang editor widget width

* js_variable

the js variable name of the rholang editor . You can call the `js_variable` after the editor in the
html to figure others implement or other interactions with other components.




## Install

1. install using pip
```bash
pip install django-rholang-editor
```

2. Update `INSTALLED_APPS`:
```python
INSTALLED_APPS = (
# ...
'django_rholang_editor',
)
```


Metadata

Release files for django-rholang-editor 0.1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distribution (wheel)

Table of built distributions (wheels) for django-rholang-editor 0.1.2
File Interpreter ABI Platform
django_rholang_editor-0.1.2-py3-none-any.whl Python 3 none any Details

Release files / django_rholang_editor-0.1.2-py3-none-any.whl

Download URL django_rholang_editor-0.1.2-py3-none-any.whl
Size 1.1 MB
Tags Python 3
SHA-256 checksum
How to use checksums
dfe54be88d4f76bf8fd51316c261f61113a60404201026045e06528042b31faf
BLAKE2b-256 checksum
How to use checksums
d006582e156687743b5fabb7c1e53ef473748fced54ecff7adcf45510e4fb69a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for django-rholang-editor 0.1.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.2 This release

1 release file No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page