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 yoursettings.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 upREST_FRAMEWORK
andSPECTACULAR_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
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
Built Distribution
Close
Hashes for django_df_api_drf-0.0.8-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9a1319667b976ce9d119be6d54415e487f1e3f224a58fbdc7ec49f37ca9e1284 |
|
MD5 | 1f122ade21ae007f66be5a2962f4c194 |
|
BLAKE2b-256 | 40b7e004ef7624e05d60c2f96fd6804e12156342cf3f43017a700bf046fb4dc6 |