Skip to content

Commit 4647c47

Browse files
authored
Improve django-app-enabler support (#661)
Add django-app-enabler documentation Improve addon config
1 parent 3c42a1e commit 4647c47

File tree

4 files changed

+35
-1
lines changed

4 files changed

+35
-1
lines changed

README.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ Features
3131

3232
See `features documentation`_ for all the features details
3333

34+
* Support for `django-app-enabler`_ autoconfiguration.
3435
* Placeholder content editing
3536
* Frontend editing using django CMS frontend editor
3637
* Multilingual support using django-parler
@@ -58,6 +59,7 @@ See DjangoPackages for an updated list https://www.djangopackages.com/packages/p
5859
.. _installation documentation: http://djangocms-blog.readthedocs.io/en/latest/installation.html
5960
.. _permalinks: http://djangocms-blog.readthedocs.io/en/latest/features/permalinks.html
6061
.. _cmsplugin-filer migration documentation: http://djangocms-blog.readthedocs.io/en/latest/cmsplugin_filer.html
62+
.. _django-app-enabler: https://github.com/nephila/django-app-enabler
6163

6264

6365
.. |Gitter| image:: https://img.shields.io/badge/GITTER-join%20chat-brightgreen.svg?style=flat-square

changes/660.feature

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Improve django-app-enabler support

djangocms_blog/addon.json

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,13 @@
1616
"META_USE_SITES": true,
1717
"META_USE_OG_PROPERTIES": true,
1818
"META_USE_TWITTER_PROPERTIES": true,
19-
"META_USE_SCHEMAORG_PROPERTIES": true
19+
"META_USE_SCHEMAORG_PROPERTIES": true,
20+
"THUMBNAIL_PROCESSORS": [
21+
"easy_thumbnails.processors.colorspace",
22+
"easy_thumbnails.processors.autocrop",
23+
"filer.thumbnail_processors.scale_and_crop_with_subject_location",
24+
"easy_thumbnails.processors.filters"
25+
]
2026
},
2127
"urls": [
2228
["", "djangocms_blog.taggit_urls"]

docs/installation.rst

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,31 @@ django CMS docs:
1515
- `django CMS user guide <http://docs.django-cms.org/en/latest/user/index.html>`_
1616
- `django CMS videos <https://www.youtube.com/channel/UCafBqF_OeeGDgQVte5eCiJg>`_
1717

18+
19+
**************************
20+
django-app-enabler support
21+
**************************
22+
23+
`django-app-enabler`_ is supported.
24+
25+
You can either
26+
27+
* Installation & configuration: ``python -mapp_enabler install djangocms-blog``
28+
* Autoconfiguration: ``python -mapp_enabler enable djangocms_blog``
29+
30+
You can further customise the blog configuration, you can start by checking:
31+
32+
- :ref:`modify_templates`
33+
- :ref:`haystack`
34+
- :ref:`attach`
35+
- :ref:`external_applications`
36+
1837
*********************
1938
Installation steps
2039
*********************
2140

41+
.. note:: The steps in this section are applied automatically by ``django-app-enabler``, if you use it.
42+
2243
* Install djangocms-blog:
2344

2445
.. code-block:: python
@@ -98,6 +119,8 @@ Installation steps
98119
99120
* Add the blog application (see :ref:`attach` below).
100121

122+
.. _modify_templates:
123+
101124
***********************
102125
Modify templates
103126
***********************
@@ -131,6 +154,7 @@ Alternative you can override then ``djangocms_blog/base.html`` and extend a diff
131154
{% endblock my_block %}
132155
...
133156

157+
.. _haystack:
134158

135159
***********************
136160
Enable haystack support
@@ -235,3 +259,4 @@ action if a ``BlogConfig`` instance is found.
235259

236260
.. _django cms frontend editor: http://docs.django-cms.org/en/latest/user/reference/page_admin.html
237261
.. _tutorial: http://docs.django-cms.org/en/latest/user/tutorial/structure-content-modes.html
262+
.. _django-app-enabler: https://github.com/nephila/django-app-enabler

0 commit comments

Comments
 (0)