Install#
Install package in your environment :
pip install sveetch-djangoapp-sample
For development usage see Install for development.
Configuration#
Add it to your installed Django apps in settings :
INSTALLED_APPS = (
...
"rest_framework",
"djangoapp_sample",
)
Then load default application settings in your settings file:
from djangoapp_sample.settings import *
Then mount applications URLs:
urlpatterns = [
...
path("", include("djangoapp_sample.urls")),
]
And finally apply database migrations.
Settings#
Default application settings#
These are the default settings you can override in your own project settings right after the line which load the default app settings.
- djangoapp_sample.settings.BLOG_PAGINATION = 5#
Blog entry per page limit for pagination, set it to
None
to disable pagination.
- djangoapp_sample.settings.ARTICLE_PAGINATION = 6#
Article entry per page limit for pagination, set it to
None
to disable pagination.