Skip to main content

A hallo js markdown editor wrapper for Django. Made for use in FeinCMS, supports multiple editors on the same page.

Installation

You can install django-hallo-markdown either via the Python Package Index (PyPI) or from source.

To install using pip,:

$ pip install -U django-hallo-markdown

To install using easy_install,:

$ easy_install -U django-hallo-markdown

Example Usage with FeinCMS

from django import forms
from django.utils.translation import ugettext_lazy as _
from django.contrib.markup.templatetags.markup import markdown
from django.db import models

from feincms.module.page.models import Page
from feincms.admin.item_editor import ItemEditorForm

from djhallo.widgets import HalloInput


class MarkdownContentAdminForm(ItemEditorForm):
    content = forms.CharField(widget=HalloInput(),
        required=False, label=_('text'))


class MarkdownPageContent(models.Model):

    form = MarkdownContentAdminForm
    feincms_item_editor_form = MarkdownContentAdminForm

    content = models.TextField()

    class Meta:
        abstract = True

    def render(self, **kwargs):
        return markdown(self.content)

Page.create_content_type(MarkdownPageContent)

Release files for django-hallo-markdown 0.1.1

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

Source distribution (sdist)

Source distribution for django-hallo-markdown 0.1.1
File Size Uploaded
django-hallo-markdown-0.1.1.tar.gz 24.4 kB Details

Release files / django-hallo-markdown-0.1.1.tar.gz

Download URL django-hallo-markdown-0.1.1.tar.gz
Size 24.4 kB
Tags Source
SHA-256 checksum
How to use checksums
5865bcb40658677147e4b460f408e713587826d7d2146626ff6cfc99522ade58
BLAKE2b-256 checksum
How to use checksums
400c8c9ac26a6b8dcb9ead233f040a113546fcfc8160798ea5bee8084f339e75
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.1.1 This release

1 release file

0.1

1 release file

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