Giter VIP home page Giter VIP logo

django-wordpress-api's Introduction

Django Wordpress API

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 project that is using wordpress core >= 4.7.0.

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
  • Retrieves 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)
  • Retrieve 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:

django-wordpress-api's People

Contributors

andresgz avatar cdvv7788 avatar jlariza avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.