Skip to main content

An article model for Django-Rest-Framework.

Project description


Mb-drf-article is a simple Django Rest Framework app to add some articles.

Quick start

1. Add "mb-drf-article" to your INSTALLED_APPS settings



2. Include the articles URLconf in your project


urlpatterns = [
    # ...
    path('articles/', include('mb-drf-article.urls')),

3. Add the models in your Database

Run python migrate in your SHELL.

4. Update the Django Rest Framework Settings

Update the Django Rest Framework settings to add a pagination.

# Django Rest Framework

    # ...
    'DEFAULT_PAGINATION_CLASS': ('rest_framework.pagination.'
    'PAGE_SIZE': 5

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for mb-drf-article, version 0.1.1
Filename, size File type Python version Upload date Hashes
Filename, size mb_drf_article-0.1.1-py3-none-any.whl (6.7 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size mb_drf_article-0.1.1.tar.gz (3.3 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page