Skip to content

Commit e1218ee

Browse files
committed
merge conflict
2 parents 39c0871 + 1ced218 commit e1218ee

File tree

3 files changed

+67
-45
lines changed

3 files changed

+67
-45
lines changed

.travis.yml

Lines changed: 37 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -4,52 +4,67 @@ sudo: false
44
matrix:
55
include:
66
- python: 2.7
7-
env: DJANGO=1.8.*
7+
env: DJANGO="==1.8.*"
88
- python: 2.7
9-
env: DJANGO=1.9.*
9+
env: DJANGO="==1.9.*"
1010
- python: 2.7
11-
env: DJANGO=1.10.*
11+
env: DJANGO="==1.10.*"
1212
- python: 2.7
13-
env: DJANGO=1.11.*
13+
env: DJANGO="==1.11.*"
1414

1515
- python: 3.4
16-
env: DJANGO=1.8.*
16+
env: DJANGO="==1.8.*"
1717
- python: 3.4
18-
env: DJANGO=1.9.*
18+
env: DJANGO="==1.9.*"
1919
- python: 3.4
20-
env: DJANGO=1.10.*
20+
env: DJANGO="==1.10.*"
2121
- python: 3.4
22-
env: DJANGO=1.11.*
22+
env: DJANGO="==1.11.*"
2323

2424
- python: 3.5
25-
env: DJANGO=1.8.*
25+
env: DJANGO="==1.8.*"
2626
- python: 3.5
27-
env: DJANGO=1.9.*
27+
env: DJANGO="==1.9.*"
2828
- python: 3.5
29-
env: DJANGO=1.10.*
29+
env: DJANGO="==1.10.*"
3030
- python: 3.5
31-
env: DJANGO=1.11.*
31+
env: DJANGO="==1.11.*"
3232
- python: 3.5
33-
env: DJANGO=2.0.*
33+
env: DJANGO="==2.0.*"
3434
- python: 3.5
35-
env: DJANGO=2.1.*
35+
env: DJANGO="==2.1.*"
36+
- python: 3.5
37+
env: DJANGO="==2.2.*"
3638

3739
- python: 3.6
38-
env: DJANGO=1.8.*
40+
env: DJANGO="==1.8.*"
41+
- python: 3.6
42+
env: DJANGO="==1.9.*"
3943
- python: 3.6
40-
env: DJANGO=1.9.*
44+
env: DJANGO="==1.10.*"
4145
- python: 3.6
42-
env: DJANGO=1.10.*
46+
env: DJANGO="==1.11.*"
4347
- python: 3.6
44-
env: DJANGO=1.11.*
48+
env: DJANGO="==2.0.*"
4549
- python: 3.6
46-
env: DJANGO=2.0.*
50+
env: DJANGO="==2.1.*"
4751
- python: 3.6
48-
env: DJANGO=2.1.*
52+
env: DJANGO="==2.2.*"
53+
- python: 3.6
54+
env: DJANGO=">=3.0a1,<3.1"
55+
56+
- python: 3.7
57+
env: DJANGO="==2.0.*"
58+
- python: 3.7
59+
env: DJANGO="==2.1.*"
60+
- python: 3.7
61+
env: DJANGO="==2.2.*"
62+
- python: 3.7
63+
env: DJANGO=">=3.0a1,<3.1"
4964

5065
- os: osx
5166
language: generic
52-
env: DJANGO=1.10.*
67+
env: DJANGO="==1.10.*"
5368

5469
# Perform the manual steps on OSX to install Python3 and activate venv:
5570
# Since Python versions have been tested on Linux and it is only a matter of
@@ -60,7 +75,7 @@ before_install:
6075
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then source env/bin/activate ; fi
6176

6277
install:
63-
- pip install -q Django==$DJANGO
78+
- pip install -q django$DJANGO
6479
- python setup.py install
6580

6681
script: python runtests.py

README.rst

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ martor |pypi version|
1717
.. image:: https://travis-ci.org/agusmakmun/django-markdown-editor.svg?branch=master
1818
:target: https://travis-ci.org/agusmakmun/django-markdown-editor
1919

20-
**Martor** is Markdown Editor plugin for Django and new face of **DracEditor**.
20+
**Martor** is a Markdown Editor plugin for Django and the new face of **DracEditor**.
2121

2222

2323
Features
@@ -26,13 +26,13 @@ Features
2626
* Live Preview
2727
* Integrated with `Ace Editor`_
2828
* Integrated with `Semantic-UI`_
29-
* Support Multiple Fields (`fixed this issue`_)
30-
* Upload Image to imgur.com `(via API)` and `custom uploader`_.
31-
* Direct Mention users ``@[username]`` - `(require user to logged in)`
32-
* Support embed/iframe video from (Youtube, Vimeo, Dailymotion, Yahoo, Veoh, & Metacafe)
29+
* Supports Multiple Fields (`fixed this issue`_)
30+
* Upload Images to imgur.com `(via API)` and `custom uploader`_.
31+
* Direct Mention users ``@[username]`` - `(requires user to logged in)`
32+
* Supports embed/iframe video from (Youtube, Vimeo, Dailymotion, Yahoo, Veoh, & Metacafe)
3333
* Emoji ``:emoji_name:`` + Cheat sheets
34-
* Martor Commands Refference
35-
* Support Django Admin
34+
* Martor Commands Reference
35+
* Supports Django Admin
3636
* Toolbar Buttons
3737
* Highlight ``pre``
3838

@@ -94,7 +94,7 @@ Martor is available directly from `PyPI`_:
9494
]
9595

9696

97-
4. Collect included some martor static files to your ``STATIC_ROOT`` folder.
97+
4. Collect martor's static files in your ``STATIC_ROOT`` folder.
9898

9999
::
100100

@@ -104,7 +104,7 @@ Martor is available directly from `PyPI`_:
104104
Setting Configurations ``settings.py``
105105
---------------------------------------
106106

107-
Please register application in https://api.imgur.com/oauth2/addclient
107+
Please register your application at https://api.imgur.com/oauth2/addclient
108108
to get ``IMGUR_CLIENT_ID`` and ``IMGUR_API_KEY``.
109109

110110
::
@@ -212,7 +212,7 @@ Usage
212212

213213
**Template**
214214

215-
Simply safe the markdown content as html ouput with loading the templatetags from ``martor/templatetags/martortags.py``.
215+
Simply safely parse markdown content as html ouput by loading templatetags from ``martor/templatetags/martortags.py``.
216216

217217
::
218218

@@ -227,12 +227,12 @@ Custom Uploader
227227
-----------------
228228

229229
If you want to save the images uploaded to your storage,
230-
**Martor** also provide to handle it. Please checkout this `WIKI`_.
230+
**Martor** also provides a way to handle this. Please checkout this `WIKI`_.
231231

232-
Test the Martor from this Repository
232+
Test Martor from this Repository
233233
-------------------------------------
234234

235-
I assume you already setup with virtual enviroment (virtualenv).
235+
Assuming you are already setup with a virtual enviroment (virtualenv):
236236

237237
::
238238

@@ -243,10 +243,10 @@ I assume you already setup with virtual enviroment (virtualenv).
243243
$ python manage.py runserver
244244

245245

246-
And let checkout at http://127.0.0.1:8000/simple-form/ to your browser.
246+
Checkout at http://127.0.0.1:8000/simple-form/ on your browser.
247247

248248

249-
Martor Commands Refference
249+
Martor Commands Reference
250250
--------------------------------
251251

252252
.. image:: https://raw.githubusercontent.com/agusmakmun/django-markdown-editor/master/__screenshot/martor-guide.png
@@ -255,7 +255,7 @@ Martor Commands Refference
255255
Notes
256256
--------------------------------
257257

258-
**Martor** was inspired by great `django-markdownx`_, `Python Markdown`_ and `Online reStructuredText editor`_.
258+
**Martor** was inspired by these great projects: `django-markdownx`_, `Python Markdown`_ and `Online reStructuredText editor`_.
259259

260260

261261
.. _Ace Editor: https://ace.c9.io

runtests.py

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -40,13 +40,20 @@
4040
}],
4141
STATIC_URL='/static/',
4242
ROOT_URLCONF='martor.tests.urls',
43-
INSTALLED_APPS=['django.contrib.admin',
44-
'django.contrib.auth',
45-
'django.contrib.contenttypes',
46-
'django.contrib.sessions',
47-
'django.contrib.messages',
48-
'django.contrib.staticfiles',
49-
'martor'])
43+
INSTALLED_APPS=[
44+
'django.contrib.auth',
45+
'django.contrib.contenttypes',
46+
'django.contrib.sessions',
47+
'django.contrib.messages',
48+
'django.contrib.admin',
49+
'martor'
50+
],
51+
MIDDLEWARE=[
52+
'django.contrib.sessions.middleware.SessionMiddleware',
53+
'django.contrib.auth.middleware.AuthenticationMiddleware',
54+
'django.contrib.messages.middleware.MessageMiddleware',
55+
],
56+
)
5057

5158
try:
5259
# Django <= 1.8

0 commit comments

Comments
 (0)