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.3.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.3-py3-none-any.whl (11.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: drf-blog-bridger-1.0.3.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.3.tar.gz
Algorithm Hash digest
SHA256 b6c54ac574257165a4cb7dcb3af82c84c52c0a12b6a24d9aa0ad6a3d96edf691
MD5 1f048c1de084e68d33f8cb2471c6e45f
BLAKE2b-256 c5dae423be2b201912ba9b381168a1a399979565dfd632a94f8d0782facec2f8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for drf_blog_bridger-1.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 1657b5229ab224f8f9f66c8bdf2bd6b161736be29b47ebde6eee2470c1022799
MD5 73cb59c45b72b08eced875af077cae12
BLAKE2b-256 47aa5c14f91ea8b5c0045f80aec4774a9281f30d8a6801dfd326fce7d61f22d3

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