Skip to content

Commit

Permalink
update version
Browse files Browse the repository at this point in the history
  • Loading branch information
pylixm committed Dec 19, 2019
1 parent baf9f86 commit 5fc209d
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 0 deletions.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,12 @@
]
```

- add frame settings for django3.0+ like this:

```python
X_FRAME_OPTIONS = 'SAMEORIGIN'
```

- Add 'media' url to your settings like this:
```python
MEDIA_ROOT = os.path.join(BASE_DIR, 'uploads')
Expand Down
6 changes: 6 additions & 0 deletions README_CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,12 @@
]
```

- 针对django3.0+修改 frame 配置,如下:

```python
X_FRAME_OPTIONS = 'SAMEORIGIN' # django 3.0 + 默认为 deny
```

-`settings` 中添加媒体文件的路径配置:
```python
MEDIA_ROOT = os.path.join(BASE_DIR, 'uploads')
Expand Down
1 change: 1 addition & 0 deletions mdeditor_demo/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,7 @@
MEDIA_ROOT = os.path.join(BASE_DIR, 'uploads')
MEDIA_URL = '/media/'

X_FRAME_OPTIONS = 'SAMEORIGIN' # django 3.0 + 默认为 deny
MDEDITOR_CONFIGS = {
'default': {
'width': '90%',
Expand Down

0 comments on commit 5fc209d

Please sign in to comment.