A package to run djangocms in headless mode
Project description
djangocms headless mode
This project is in test mode.
Installation
- Install the plugin by
pip install django-cms-headless-test
- rest_framework is a pre-requisite for this. Install it if not already installed using
pip install djangorestframework
Setup
Open the settings.py file and add the following:
INSTALLED_APPS = (
...
'django_cms_headless_test',
'rest_framework',
...
)
Open the urls.py and add the following line in the url patterns
urlpatterns = [
...
url(r'api/', include('django_cms_headless_test.urls', namespace='headless_api')),
...
]
Output
Run the server and go to /api/pages
. You should be able to see the JSON with the details of all pages along with title, slug, meta-data etc. To see data for specific page, go to /api/pages/path/<page-path>
(e.g. /api/pages/path/contact-us) to see data related to individual pages
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Close
Hashes for django-cms-headless-test-0.0.1.dev3.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 72b9e16c364ececfe36da92c9e9dd696f619f238f10717871386b9c492b52fba |
|
MD5 | 30984a8e6a0d3410ace27f0ba26bd844 |
|
BLAKE2b-256 | bdcf3d574df4108cfbfce26e11e12750d6575fd35e48ef30a6b03d4f538c78cf |