mirror of
https://github.com/wagtail/wagtail.git
synced 2024-11-30 01:46:24 +01:00
24 lines
481 B
ReStructuredText
24 lines
481 B
ReStructuredText
Wagtail API Installation
|
|
========================
|
|
|
|
|
|
To install, add ``wagtail.contrib.wagtailapi`` to ``INSTALLED_APPS`` in your Django settings and configure a URL for it in ``urls.py``
|
|
|
|
.. code-block:: python
|
|
|
|
# settings.py
|
|
|
|
INSTALLED_APPS = [
|
|
...
|
|
'wagtail.contrib.wagtailapi',
|
|
]
|
|
|
|
# urls.py
|
|
|
|
from wagtail.contrib.wagtailapi import urls as wagtailapi_urls
|
|
|
|
urlpatterns = [
|
|
...
|
|
url(r'^api/', include(wagtailapi_urls)),
|
|
]
|