Skip to content

Installation

Basic Setup

The following instructions will help you install Blog Bridger in your project and have it running.

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:

    settings.py
    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:

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

  5. Create views to authenticate your users.