Skip to main content

Easily Install your Wordpress blog in your Django project using wp rest API v1

Project description

https://badge.fury.io/py/django-wordpress-api.png https://travis-ci.org/swappsco/django-wordpress-api.png?branch=master https://coveralls.io/repos/github/swappsco/django-wordpress-api/badge.svg?branch=master https://readthedocs.org/projects/django-wordpress-api/badge/?version=latest

Easily Install your Wordpress blog in your Django project

This package allows to communicate easily with any wordpress proyect that is using WP REST API v1 .

Even though the WP REST API package is already on the 2 version; it is still on beta so it was decided that this package will only support v1 until v2 is out of beta.

Documentation

The full documentation is at https://django-wordpress-api.readthedocs.org.

Quickstart

Install Django Wordpres API:

pip install django-wordpress-api

Then use it in a project:

import wordpress_api

Features

  • Connect to an external wordpress application

  • Retreives all the blog posts ordered by pages

  • Filter blog posts using several of the available filters in WP REST API

  • Search blog posts using a keyword

  • order the blog posts by several attributes like author, title, type, etc; ascending and descending order (default order is descending date)

  • Retreive posts with a different type than “post”

  • Four Views to display the blog page, The Post detail, The Posts filtered by category and the Posts filtered by tag; All of this with the search by keyword option

Running Tests

Does the code actually work?

source <YOURVIRTUALENV>/bin/activate
(myenv) $ pip install -r requirements.txt
(myenv) $ pip install -r requirements_test.txt
(myenv) $ python manage.py test

Credits

Tools used in rendering this package:

History

0.1.0 (2016-09-02)

  • First release on PyPI.

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-wordpress-api-0.1.5.tar.gz (10.1 kB view details)

Uploaded Source

File details

Details for the file django-wordpress-api-0.1.5.tar.gz.

File metadata

File hashes

Hashes for django-wordpress-api-0.1.5.tar.gz
Algorithm Hash digest
SHA256 c4f471fb6df8e2ca63c8ff53c693fdb6dc11768b886fb451296f5baaa698d913
MD5 1d95fc10fe993950c164fad722185279
BLAKE2b-256 00a2489b23be25023ad4985ba49183299a7156182a16a256a04eaab520a0d34b

See more details on using hashes here.

Provenance

Supported by

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