markdown_editor ver1
This commit is contained in:
parent
e76e34f11c
commit
872424a96f
3 changed files with 87 additions and 0 deletions
21
judge/views/markdown_editor.py
Normal file
21
judge/views/markdown_editor.py
Normal file
|
@ -0,0 +1,21 @@
|
|||
# from django.contrib.auth.decorators import login_required
|
||||
from django.views import View
|
||||
from django.utils.timezone import now
|
||||
from django.shortcuts import render
|
||||
from django.db.models import BooleanField, Value
|
||||
from django.middleware.csrf import get_token
|
||||
from .preview import BlogMarkdownPreviewView
|
||||
|
||||
|
||||
# __all__ = ["MarkdownEditor"]
|
||||
|
||||
|
||||
class MarkdownEditor(View):
|
||||
def get(self, request):
|
||||
return render(
|
||||
request,
|
||||
"markdown_editor/markdown_editor.html",
|
||||
{
|
||||
"title": ("Markdown Editor"),
|
||||
},
|
||||
)
|
Loading…
Add table
Add a link
Reference in a new issue