You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/source/index.rst
+14-1Lines changed: 14 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -30,14 +30,27 @@ Installation
30
30
Use your favorite Python installer to install it from PyPI::
31
31
32
32
pip install wagtail-robots
33
+
pip install wagtail_modeladmin # if Wagtail >= 5.1
33
34
34
35
Or get the source from the application site at::
35
36
36
37
http://github.com/adrian-turjak/wagtail-robots/
37
38
38
39
Then follow these steps:
39
40
40
-
1. Add ``'wagtail_modeladmin'`` (if the Wagtail version is 5.1 and above, otherwise ``'wagtail.contrib.modeladmin'``) and ``'robots'`` to your INSTALLED_APPS_ setting.
41
+
1. Add ``robots`` and ``modeladmin`` to the
42
+
``INSTALLED_APPS`` setting in your project settings:
43
+
44
+
.. code-block:: python
45
+
:caption: e.g. settings.py
46
+
47
+
INSTALLED_APPS= [
48
+
...
49
+
'wagtail_modeladmin', # if Wagtail >=5.1; Don't repeat if it's there already
50
+
'wagtail.contrib.modeladmin', # if Wagtail <5.1; Don't repeat if it's there already
51
+
'robots',
52
+
]
53
+
41
54
2. Run the ``migrate`` management command
42
55
43
56
You may want to additionally setup the `Wagtail sitemap generator`_.
0 commit comments