Skip to main content

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

Metadata

Release files for django-df-api-drf 1.0.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for django-df-api-drf 1.0.4
File Size Uploaded Provenance
django-df-api-drf-1.0.4.tar.gz 9.2 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for django-df-api-drf 1.0.4
File Interpreter ABI Platform
django_df_api_drf-1.0.4-py3-none-any.whl Python 3 none any Details

Total release size: 19.5 kB

Release files / django-df-api-drf-1.0.4.tar.gz

Download URL django-df-api-drf-1.0.4.tar.gz
Size 9.2 kB
Tags Source
SHA-256 checksum
How to use checksums
1366c89c1aa6b2cc116d00dc5af1a1e963d0acd658bc03aa86954d2a24e7d7ab
BLAKE2b-256 checksum
How to use checksums
d73d65d717e00a9683040201f09d2eea9e5b252e39de0712c1835ed136e7bf34
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.7

Release files / django_df_api_drf-1.0.4-py3-none-any.whl

Download URL django_df_api_drf-1.0.4-py3-none-any.whl
Size 10.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8dcbeda7db79f33ccaa6474b3f8fa9651c87d43deb126def0f1347179de2bc90
BLAKE2b-256 checksum
How to use checksums
97652545050dd8cbb71b61b7d25ff97210f452d684aa96e64c9b5c7574127d49
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.7

Security for django-df-api-drf 1.0.4

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page