Skip to content

Latest commit

 

History

History
59 lines (44 loc) · 1.62 KB

README.md

File metadata and controls

59 lines (44 loc) · 1.62 KB

Django-Blog-With-EditorMd

Blog in Django, Integration with Editor.md, Simple Menu and Comment.

Features

  1. Edit Admin with editor.md, You Can use All Editor.Md Features!

  2. Show Markdown In Blog.

  3. Simple & Useful Menu.

  4. Simple Comment Component.

Prepare

  1. Install Python2 or Python3
  2. Install pip
  3. Install Django >= 1.10
pip install django
  1. Install Pillow
pip install pillow
  1. Run Demo
python manager.py runserver 80
  1. Visit 127.0.0.1 , Then You Can See Full Demo!

Expand Yourself

1. You can only use editormd as an app. And Use Django formfield_overrides to make Editor.md valid.Just like this:

# -*- coding: utf-8 -*-
from __future__ import unicode_literals

from django.contrib import admin
from django.db import models

from .models import Article, MenuItem, ArticleComment
from editormd.widgets import AdminEditormdWidget

# Register your models here.
class AdminArticle(admin.ModelAdmin):
	formfield_overrides = {
		models.TextField : {'widget' : AdminEditormdWidget}
	}

admin.site.register(Article, AdminArticle)

2. You can expend menu item at django-admin。