An article model for Django-Rest-Framework.
Project description
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
}
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
mb_drf_article-0.1.2.tar.gz
(3.4 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file mb_drf_article-0.1.2.tar.gz.
File metadata
- Download URL: mb_drf_article-0.1.2.tar.gz
- Upload date:
- Size: 3.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/0.12.11 CPython/3.6.5rc1 Windows/10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
957208d2d9573eaecb9427c1d0d13888cbe0c11021b55058a302d7668fa70a26
|
|
| MD5 |
50dc3f7b870eaae5a0e786850106301c
|
|
| BLAKE2b-256 |
a8fe5184aa686efcfe9455d6c2dacc11a312c9c03d4732a64146d93e86d0540b
|
File details
Details for the file mb_drf_article-0.1.2-py3-none-any.whl.
File metadata
- Download URL: mb_drf_article-0.1.2-py3-none-any.whl
- Upload date:
- Size: 6.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/0.12.11 CPython/3.6.5rc1 Windows/10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fbcfedc28f083dbdda4ba7634629badb6cc90425257dd7943b83fb247cd26ed7
|
|
| MD5 |
fd9d8c0b72db579d06f63476aff24cfb
|
|
| BLAKE2b-256 |
90e60d6202c54da068d162969821e56f515109238cb3fa6ad5a14df6a61027a3
|