Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

django-cms-headless-test-0.0.1.dev3.tar.gz (3.6 kB view details)

Uploaded Source

File details

Details for the file django-cms-headless-test-0.0.1.dev3.tar.gz.

File metadata

  • Download URL: django-cms-headless-test-0.0.1.dev3.tar.gz
  • Upload date:
  • Size: 3.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.6.10

File hashes

Hashes for django-cms-headless-test-0.0.1.dev3.tar.gz
Algorithm Hash digest
SHA256 72b9e16c364ececfe36da92c9e9dd696f619f238f10717871386b9c492b52fba
MD5 30984a8e6a0d3410ace27f0ba26bd844
BLAKE2b-256 bdcf3d574df4108cfbfce26e11e12750d6575fd35e48ef30a6b03d4f538c78cf

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page