Skip to main content

A DRF app that provides CRUD endpoints for a blog app.

Project description

DRF Blog Bridger

Introduction

DRF Blog Bridger is a simple tool that allows Django Rest Framework Developers to set up a simple blog API without worrying about the underlying code. The tool takes care of things like CRUD operations for blog posts, as well as the comment feature for each post.

Getting Started

The following instructions will help you install DRF Blog Bridger on your local system and have it running. You can read the full documentation on Read The Docs.

Prerequisites

  • Python 3.8 or higher
  • Pip
  • Django Rest Framework

Installation and Setup

  1. Install the package with:

    pip install drf_blog_bridger
    
  2. Include the following settings in your settings.py file:

    INSTALLED_APPS = [
    
        'blog_bridger_drf',
        'rest_framework',
    ]
    
    REST_FRAMEWORK = {
        'DEFAULT_PERMISSION_CLASSES':[
            'rest_framework.permissions.IsAuthenticatedOrReadOnly',
        ]
    }
    
  3. Include the following in your project-level urls.py file:

    path('api/posts/', include('blog_bridger_drf.urls')),
    
  4. Run python manage.py migrate to migrate the models into your database. You should read the API reference to understand how the endpoints work.

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

drf-blog-bridger-1.0.2.tar.gz (7.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

drf_blog_bridger-1.0.2-py3-none-any.whl (11.5 kB view details)

Uploaded Python 3

File details

Details for the file drf-blog-bridger-1.0.2.tar.gz.

File metadata

  • Download URL: drf-blog-bridger-1.0.2.tar.gz
  • Upload date:
  • Size: 7.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.11.5

File hashes

Hashes for drf-blog-bridger-1.0.2.tar.gz
Algorithm Hash digest
SHA256 44589e1baf8fa73ce1c31f5c5c8ccd3845ae4ef75aea2d096d595355da01e3b5
MD5 390a5a0b315e064b11f61a42c4e66912
BLAKE2b-256 8d5ece5d2f05a051ba34bb42082090487e387152e642d5acb549f9ad06c96ae8

See more details on using hashes here.

File details

Details for the file drf_blog_bridger-1.0.2-py3-none-any.whl.

File metadata

File hashes

Hashes for drf_blog_bridger-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 66a8cbaad5bea43f9bd8468a36ba8eff0679a662178c83b23baea32c64c2ed30
MD5 12a30b9b136638c542c2ca4bc13ae95e
BLAKE2b-256 94d9bba281dd9a809e6f56260a6859671996a83634da63211d82d20969f1b7c0

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