mirror of
https://github.com/Hopiu/django-markdownx.git
synced 2026-03-17 14:00:22 +00:00
27 lines
576 B
ReStructuredText
27 lines
576 B
ReStructuredText
Getting Started
|
|
===============
|
|
|
|
1. Add ``'markdownx'`` to the ``INSTALLED_APPS`` in :guilabel:`settings.py` file:
|
|
|
|
.. code-block:: python
|
|
|
|
INSTALLED_APPS = (
|
|
# [...]
|
|
'markdownx',
|
|
)
|
|
|
|
2. Add url pattern to the :guilabel:`urls.py` file:
|
|
|
|
.. code-block:: python
|
|
|
|
urlpatterns = [
|
|
# [...]
|
|
url(r'^markdownx/', include('markdownx.urls')),
|
|
]
|
|
|
|
3. Collect included :guilabel:`markdownx.js` and :guilabel:`markdownx.css` (for Django Admin) to
|
|
your :guilabel:`STATIC_ROOT` folder:
|
|
|
|
.. code-block:: bash
|
|
|
|
python3 manage.py collectstatic
|