mb-drf-article 0.1.2

Creator: codyrutscher

Last updated:

Add to Cart

Description:

mbdrfarticle 0.1.2

Mb-drf-article
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
# settings.py

INSTALLED_APPS = [
...
'mb-drf-article',
]

2. Include the articles URLconf in your project urls.py
# urls.py

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

3. Add the models in your Database
Run python manage.py migrate in your SHELL.
4. Update the Django Rest Framework Settings
Update the Django Rest Framework settings to add a pagination.
# Django Rest Framework
# https://www.django-rest-framework.org

REST_FRAMEWORK = {
# ...
'DEFAULT_PAGINATION_CLASS': ('rest_framework.pagination.'
'LimitOffsetPagination'),
'PAGE_SIZE': 5
}

License

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Customer Reviews

There are no reviews.