File tree Expand file tree Collapse file tree 2 files changed +36
-9
lines changed
Expand file tree Collapse file tree 2 files changed +36
-9
lines changed Original file line number Diff line number Diff line change @@ -41,29 +41,57 @@ Preview
4141.. image :: https://raw.githubusercontent.com/agusmakmun/dracos-markdown-editor/master/__screenshot/draceditor-preview.png
4242
4343
44+ Requirements
45+ ------------------------------
46+
47+ * ``Django>=1.10.1 ``
48+ * ``Markdown>=2.6.7 ``
49+ * ``requests>=2.12.4 ``
50+
51+
4452Installation
4553------------------------------
4654
4755DracEditor is available directly from `PyPI `_:
4856
57+ 1. Installing the package.
58+
4959::
5060
5161 $ pip install draceditor
5262
5363
54- ** *). ** And don 't forget to add ``'draceditor' `` to your ``'INSTALLED_APPS' `` setting `(without migrations) `.
64+ 2. Don 't forget to add ``'draceditor' `` to your ``'INSTALLED_APPS' `` setting `(without migrations) `.
5565
66+ ::
5667
57- Requirements
58- ------------------------------
68+ # settings.py
69+ INSTALLED_APPS = [
70+ ....
71+ 'draceditor',
72+ ]
5973
60- * ``Django>=1.10.1 ``
61- * ``Markdown>=2.6.7 ``
62- * ``requests>=2.12.4 ``
6374
75+ 3. Add url pattern to your ``urls.py. ``
6476
65- Configurations
66- ------------------------------
77+ ::
78+
79+ # urls.py
80+ urlpatterns = [
81+ ...
82+ url(r'^draceditor/', include('draceditor.urls')),
83+ ]
84+
85+
86+ 4. Collect included some draceditor static files to your ``STATIC_ROOT `` folder.
87+
88+ ::
89+
90+ ./manage.py collectstatic
91+
92+
93+ Setting Configurations ``settings.py ``
94+ ---------------------------------------
6795
6896::
6997
Original file line number Diff line number Diff line change @@ -37,7 +37,6 @@ class Media:
3737 css = {
3838 'all' : (
3939 'plugins/css/ace.min.css' ,
40- 'plugins/css/atwho.css' ,
4140 'plugins/css/semantic.min.css' ,
4241 'css/draceditor.css' ,
4342 )
You can’t perform that action at this time.
0 commit comments