Skip to main content

django-df-api-drf

Project description

Django DF API DRF

Module for automatic including Djangoflow apps API to your project.

Installation:

  • Install the package
pip install django-df-api-drf
  • Include default settings from df_api_drf.defaults to your settings.py
from df_api_drf.defaults import DF_API_DRF_INSTALLED_APPS, REST_FRAMEWORK, SPECTACULAR_SETTINGS

INSTALLED_APPS = [
    ...
    *DF_API_DRF_INSTALLED_APPS,
    ...
]

REST_FRAMEWORK = {
    ...
    **REST_FRAMEWORK,
}

SPECTACULAR_SETTINGS = {
    ...
    **SPECTACULAR_SETTINGS,
}
  • Alternatively, you can include the package to your INSTALLED_APPS manually and set up REST_FRAMEWORK and SPECTACULAR_SETTINGS by yourself:
INSTALLED_APPS = [
    ...
    'df_api_drf',
    ...
]

REST_FRAMEWORK = {
    ...
}

SPECTACULAR_SETTINGS = {
    ...
}
  • Add the package to your urls.py
urlpatterns = [
    ...
    path("api/", include("df_api_drf.urls")),
    ...
]

Development

Installing dev requirements:

pip install -e .[test]

Installing pre-commit hook:

pre-commit install

Running tests:

pytest

Project details


Download files

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

Source Distribution

django-df-api-drf-1.0.4.tar.gz (9.2 kB view details)

Uploaded Source

Built Distribution

django_df_api_drf-1.0.4-py3-none-any.whl (10.3 kB view details)

Uploaded Python 3

File details

Details for the file django-df-api-drf-1.0.4.tar.gz.

File metadata

  • Download URL: django-df-api-drf-1.0.4.tar.gz
  • Upload date:
  • Size: 9.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.7

File hashes

Hashes for django-df-api-drf-1.0.4.tar.gz
Algorithm Hash digest
SHA256 1366c89c1aa6b2cc116d00dc5af1a1e963d0acd658bc03aa86954d2a24e7d7ab
MD5 08f26e9ca7a8c8d5142f3c1da725ef7c
BLAKE2b-256 d73d65d717e00a9683040201f09d2eea9e5b252e39de0712c1835ed136e7bf34

See more details on using hashes here.

File details

Details for the file django_df_api_drf-1.0.4-py3-none-any.whl.

File metadata

File hashes

Hashes for django_df_api_drf-1.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 8dcbeda7db79f33ccaa6474b3f8fa9651c87d43deb126def0f1347179de2bc90
MD5 b2ff32cabdde5f1c5142c3171961362d
BLAKE2b-256 97652545050dd8cbb71b61b7d25ff97210f452d684aa96e64c9b5c7574127d49

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page