-
git submodule add https://github.com/leoBitto/journal.git
-
pip install django_quill
-
Add "journal" to your setting.py like this:
INSTALLED_APPS - [ ... 'django_quill', 'journal', ]
-
Include the journal URLconf in your project urls.py like this:
path('journal/', include(('journal.urls', 'journal'), namespace="journal")),
-
Run
python manage.py migrate journal
to create the journal models.
if you want to use the article links outside the app you need to use the namespace. it is always a good idea when having many apps inside a Django project to use the namespace. for example:
> <a href="{% url 'journal:article' slug=article.slug %}"</a>