Skip to main content

What’s that

uikit_editor is a reusable application for Django, using UiKit editor

Dependence

  • Django >= 1.3

Getting started

  • Install uikit_editor:

`pip install django-uikit-editor`

  • Add ‘uikit_editor’ to INSTALLED_APPS.

Using in model

from django.db import models
from uikit_editor import UiKitField

class Entry(models.Model):
    title = models.CharField(max_length=250, verbose_name=u'Title')
    text = UiKitField(verbose_name=u'Text')

or use custom parametrs:

text = UiKitField(
    verbose_name=u'Text',
    mode="tab", # 'split', 'tab' default 'split'
    markdown=True #default False
)

Using for only admin interface

from django import forms
from uikit_editor import UiKitWidget
from blog.models import Entry

class EntryAdminForm(forms.ModelForm):
    class Meta:
        model = Entry
        widgets = {
           'text': UiKitWidget(),
        }

class EntryAdmin(admin.ModelAdmin):
    form = EntryAdminForm

UiKitWidget takes the same parameters as UiKitField.

Contributing

  1. Fork it!

  2. Create your feature branch: git checkout -b my-new-feature

  3. Commit your changes: git commit -am ‘Add some feature’

  4. Push to the branch: git push origin my-new-feature

  5. Submit a pull request =]

Download files

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

Source Distribution

django-uikit-editor-0.0.1.tar.gz (1.2 MB view details)

Uploaded Source

File details

Details for the file django-uikit-editor-0.0.1.tar.gz.

File metadata

File hashes

Hashes for django-uikit-editor-0.0.1.tar.gz
Algorithm Hash digest
SHA256 9f292dce01ff0ebb7c0c8a72cbac91f47aed120f212873bfc0d54bbff0a99e16
MD5 ffb25757af18bd533e1fb8b9563f32fb
BLAKE2b-256 3f6172c02848b6e0400f5654dd06f1cd5af021202932eb75f7dece4b36af238d

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.0.1 This release

1 file

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page