반응형
https://neutronx.github.io/django-markdownx/
설치하기
$ pip install django-markdownx
Collecting django-markdownx
Downloading django_markdownx-3.0.1-py2.py3-none-any.whl (46 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 46.0/46.0 KB 1.2 MB/s eta 0:00:00
Requirement already satisfied: Django in ./venv/lib/python3.8/site-packages (from django-markdownx) (4.0.2)
Requirement already satisfied: Pillow in ./venv/lib/python3.8/site-packages (from django-markdownx) (9.0.1)
Collecting Markdown
Downloading Markdown-3.3.6-py3-none-any.whl (97 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 97.8/97.8 KB 3.1 MB/s eta 0:00:00
Requirement already satisfied: sqlparse>=0.2.2 in ./venv/lib/python3.8/site-packages (from Django->django-markdownx) (0.4.2)
Requirement already satisfied: asgiref<4,>=3.4.1 in ./venv/lib/python3.8/site-packages (from Django->django-markdownx) (3.5.0)
Requirement already satisfied: backports.zoneinfo in ./venv/lib/python3.8/site-packages (from Django->django-markdownx) (0.2.1)
Collecting importlib-metadata>=4.4
Downloading importlib_metadata-4.11.1-py3-none-any.whl (17 kB)
Collecting zipp>=0.5
Using cached zipp-3.7.0-py3-none-any.whl (5.3 kB)
Installing collected packages: zipp, importlib-metadata, Markdown, django-markdownx
Successfully installed Markdown-3.3.6 django-markdownx-3.0.1 importlib-metadata-4.11.1 zipp-3.7.0
Settings에 추가하기
INSTALLED_APPS = (
# [...]
'markdownx',
)
urls에도 추가
urlpatterns = [
# [...]
path('markdownx/', include('markdownx.urls')),
]
django가 4.0이라면 3.2로 version down 한다.
$ pip list
Package Version
------------------- -------
appnope 0.1.2
asgiref 3.5.0
asttokens 2.0.5
backcall 0.2.0
backports.zoneinfo 0.2.1
beautifulsoup4 4.10.0
black 22.1.0
click 8.0.4
crispy-bootstrap5 0.6
decorator 5.1.1
Django 4.0.2
django-crispy-forms 1.14.0
django-extensions 3.1.5
django-markdownx 3.0.1
executing 0.8.2
importlib-metadata 4.11.1
ipython 8.0.1
jedi 0.18.1
Markdown 3.3.6
matplotlib-inline 0.1.3
mypy-extensions 0.4.3
parso 0.8.3
pathspec 0.9.0
pexpect 4.8.0
pickleshare 0.7.5
Pillow 9.0.1
pip 22.0.3
platformdirs 2.5.1
prompt-toolkit 3.0.28
ptyprocess 0.7.0
pure-eval 0.2.2
Pygments 2.11.2
setuptools 57.0.0
six 1.16.0
soupsieve 2.3.1
sqlparse 0.4.2
stack-data 0.2.0
tomli 2.0.1
traitlets 5.1.1
typing_extensions 4.1.1
wcwidth 0.2.5
wheel 0.36.2
zipp 3.7.0
$ pip uninstall django
Found existing installation: Django 4.0.2
Uninstalling Django-4.0.2:
Would remove:
/Users/venv/bin/django-admin
/Users/venv/lib/python3.8/site-packages/Django-4.0.2.dist-info/*
/Users/venv/lib/python3.8/site-packages/django/*
Proceed (Y/n)? Y
Successfully uninstalled Django-4.0.2
$ pip install django==3.2
Collecting django==3.2
Downloading Django-3.2-py3-none-any.whl (7.9 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 7.9/7.9 MB 10.8 MB/s eta 0:00:00
Requirement already satisfied: asgiref<4,>=3.3.2 in ./venv/lib/python3.8/site-packages (from django==3.2) (3.5.0)
Collecting pytz
Downloading pytz-2021.3-py2.py3-none-any.whl (503 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 503.5/503.5 KB 6.4 MB/s eta 0:00:00
Requirement already satisfied: sqlparse>=0.2.2 in ./venv/lib/python3.8/site-packages (from django==3.2) (0.4.2)
Installing collected packages: pytz, django
Successfully installed django-3.2 pytz-2021.
반응형
'Django' 카테고리의 다른 글
secret key 생성 (0) | 2022.03.07 |
---|---|
Django all-auth 로그인 연동 (0) | 2022.02.26 |
Django-crispy-form을 설치하기 (0) | 2022.02.24 |
Python strip() (0) | 2022.02.24 |
Django Shell Plus (0) | 2022.02.22 |