| Django-Hallo Markdown. Django ¿ë Hallo Wysiwyg Markdown À§Á¬ |
Áö±Ý ´Ù¿î·Îµå |
Django-Hallo Markdown. ¼øÀ§ ¹× ¿ä¾à
- ƯÇã:
- MIT/X Consortium Lic...
- °Ô½ÃÀÚ À̸§:
- Stefan Kjartansson
Django-Hallo Markdown. ű×
Django-Hallo Markdown. ¼³¸í
Django-Hallo MarkdownÀº DjangoÀÇ Hallo JS Markdown ÆíÁý±â ·¡ÆÛÀÔ´Ï´Ù. Feincms¿¡¼ »ç¿ëÇϵµ·Ï ¸¸µé¾îÁ³À¸¸ç µ¿ÀÏÇÑ ÆäÀÌÁö¿¡¼ ¿©·¯ ÆíÁýÀÚ¸¦ Áö¿øÇÕ´Ï´Ù .InstallationYou´Â Python ÆÐÅ°Áö À妽º (Pypi)¸¦ ÅëÇØ Django-Hallo MarkdownÀ» ¼³Ä¡ÇÒ ¼ö ÀÖ½À´Ï´Ù. PIP¸¦ »ç¿ëÇÏ¿© ¼³Ä¡ÇÏ·Á¸é AST. -u Django-Hallo-Markdownto easy_install, easy_install -u django-hallo-markdout -u django-hallo-markdownexample »ç¿ë¹ý django °¡Á® ¿À±â formsfrom django.utils.Translation import ugettext_lazy °¡Á® ¿À±â _from django.contrib.markup.templateTags.markup import markdownfrom django.db import modelsfrom feincms.module.page. ¸ðµ¨ import pageFrom feincms.admin.item_editor °¡Á® ¿À±â djhallo.widgets halloinputclass markdowncontentAdminForm (itemeditorform) : content = forms.charfield (widget = halloinput (), Çʼö = false, label = _ ( 'text')) Ŭ·¡½º MarkDownPageContent Ŭ·¡½º MarkDownPageContent (¸ðµ¨) ¸ðµ¨ : Form = MarkDownContentAdminform Feincms_item_editor_Form = markdowncontentAdminForm Content = models.textfield () Ŭ·¡½º ¸ÞŸ : Abstract = True DEF ·»´õ¸µ (ÀÚü, ** kwargs) : Return Markdown (self.Content) PA GE.CREATE_CONTENT_TYPE (MarkDownPageContent) Á¦Ç°ÀÇ È¨ÆäÀÌÁö
Django-Hallo Markdown. °ü·Ã ¼ÒÇÁÆ®¿þ¾î