Skip to content

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

Notifications You must be signed in to change notification settings

ChenJinCan/Django-Blog-With-EditorMd

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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。

About

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

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages