开源软件名称(OpenSource Name):klen/django_markdown开源软件地址(OpenSource Url):https://github.com/klen/django_markdown开源编程语言(OpenSource Language):JavaScript 40.0%开源软件介绍(OpenSource Introduction):Django-Markdown v. 0.8.4Django markdown is django application that allows use markdown wysiwyg in flatpages, admin forms and other forms. Documentaton available at pypi or github. Contents Requirements
InstallationDjango markdown should be installed using pip: pip install django-markdown SetupNote 'django_markdown' require 'django.contrib.staticfiles' in INSTALLED_APPS
Use django_markdown
SettingsMARKDOWN_EDITOR_SETTINGS - holds the extra parameters set to be passed to MARKDOWN_EDITOR_SKIN - skin option, default value is Example: settings.py MARKDOWN_EDITOR_SKIN = 'simple' MARKDOWN_EXTENSIONS - optional list of extensions passed to Markdown, discussed at https://pythonhosted.org/Markdown/extensions/index.html#officially-supported-extensions Example: settings.py MARKDOWN_EXTENSIONS = ['extra'] MARKDOWN_EXTENSION_CONFIGS - Configure extensions, discussed at https://pythonhosted.org/Markdown/reference.html#extension_configs MARKDOWN_PREVIEW_TEMPLATE - Template for preview a markdown. By default django_markdown/preview.css MARKDOWN_STYLE - path to preview styles. By default django_markdown/preview.css MARKDOWN_SET_PATH - path to folder with sets. By default django_markdown/sets MARKDOWN_SET_NAME - name for current set. By default markdown. MARKDOWN_PROTECT_PREVIEW - protect preview url for staff only ExamplesExecute make run in sources directory. Open http://127.0.0.1:8000 in your browser. For admin access use 'root:root' credentials. ChangesMake sure you`ve read the following document if you are upgrading from previous versions: http://packages.python.org/django-markdown/changes.html Bug trackerIf you have any suggestions, bug reports or annoyances please report them to the issue tracker at https://github.com/klen/django_markdown/issues ContributingDevelopment of django-markdown happens at github: https://github.com/klen/django_markdown ContributorsLicenseLicensed under a GNU lesser general public license. CopyrightCopyright (c) 2011 Kirill Klenov (horneds@gmail.com)
|
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论