Giter Site home page Giter Site logo

django-wordpress-api's Introduction

Django Wordpress API

image

image

image

image

Easily Install your Wordpress blog in your Django project

This package allows to communicate easily with any wordpress project 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
  • 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 julianbonilla7 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.