Blog in Django, Integration with Editor.md, Simple Menu and Comment.
-
Edit Admin with editor.md, You Can use All Editor.Md Features!
-
Simple & Useful Menu.
- Install Python2 or Python3
- Install pip
- Install Django >= 1.10
pip install django
- Install Pillow
pip install pillow
- Run Demo
python manager.py runserver 80
- Visit 127.0.0.1 , Then You Can See Full Demo!
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)