A Django text editor with Markdown and file upload support
Project description
Markdownme is a text editor component with Markdown syntax support, simplified file upload and deletion and a history of text changes. Its file-uploading history-containing nature makes it a better choice for more complex text entries which are edited by trusted users such as blog posts, as opposed to short text comments which anyone can post.
Detailed documentation is in the github project repository.
Quick start
Add “markdownme” to your INSTALLED_APPS setting like this:
INSTALLED_APPS = [ ... 'markdownme', ]
Include the markdownme URLconf in your project urls.py like this:
url(r'^markdownme/', include('markdownme.urls')),
Run python manage.py migrate to create the markdownme models.
Run python manage.py collectstatic to collect markdownme static files.
Create your desired model and derive it from ‘MarkdownmeEntry’ like this:
class Article(MarkdownmeEntry):
Your model now has access to 3 new fields called:
markdown_text parsed_text markdown_identifier
Include these in your Article admin fields like this:
fields = ('title', 'date', 'markdown_text', 'markdown_identifier')
Start the development server and visit http://127.0.0.1:8000/admin/ to create an article (you’ll need the Admin app enabled).
Your article text now has a fancy editor and you can also use ‘parsed_text’ to access the HTML resulting from your parsed Markdown text.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.