Skip to content

Commit eb2d3a8

Browse files
authored
Merge pull request #99 from 0p3r4t0r/fix_demo
Fix demo
2 parents 7acc76c + 2c8103f commit eb2d3a8

File tree

4 files changed

+8
-7
lines changed

4 files changed

+8
-7
lines changed

martor/extensions/emoji.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
from ..settings import (
33
MARTOR_MARKDOWN_BASE_EMOJI_URL,
44
MARTOR_MARKDOWN_BASE_EMOJI_USE_STATIC)
5-
from django.contrib.staticfiles.templatetags.staticfiles import static
5+
from django.templatetags import static
66

77
"""
88
>>> import markdown

martor_demo/app/templates/base.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{% load staticfiles %}<!DOCTYPE html>
1+
{% load static %}<!DOCTYPE html>
22
<html lang="en-us">
33
<head>
44
<title>{% block title %}{% endblock %} :: Martor</title>

martor_demo/app/templates/test_markdownify.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{% load staticfiles %}
1+
{% load static %}
22
{% load martortags %}
33
<!DOCTYPE html>
44
<html lang="en-us">

martor_demo/martor_demo/settings.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,11 @@
2727
DEBUG = True
2828
ALLOWED_HOSTS = ['*']
2929
MARTOR_ENABLE_CONFIGS = {
30-
'imgur': 'true', # to enable/disable imgur/custom uploader.
31-
'mention': 'true', # to enable/disable mention
32-
'jquery': 'true', # to include/revoke jquery (require for admin default django)
33-
'living': 'false' # to enable/disable live updates in preview
30+
'imgur': 'true', # to enable/disable imgur/custom uploader.
31+
'mention': 'true', # to enable/disable mention
32+
'jquery': 'true', # to include/revoke jquery (require for admin default django)
33+
'living': 'false', # to enable/disable live updates in preview
34+
'spellcheck': 'true', # to enable/disable spellcheck in the editor.
3435
}
3536

3637
# Application definition

0 commit comments

Comments
 (0)