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
-
Install the package with:
pip install drf_blog_bridger
-
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', ] }
-
Include the following in your project-level
urls.py
file:path('api/posts/', include('blog_bridger_drf.urls')),
-
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for drf_blog_bridger-1.0.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1657b5229ab224f8f9f66c8bdf2bd6b161736be29b47ebde6eee2470c1022799 |
|
MD5 | 73cb59c45b72b08eced875af077cae12 |
|
BLAKE2b-256 | 47aa5c14f91ea8b5c0045f80aec4774a9281f30d8a6801dfd326fce7d61f22d3 |