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-1.0.0a2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 49a145676b6c328f83435dfa371eba8aea2b5d45941fe533e2cd25a9796c7a36 |
|
MD5 | 45172a2ef714dbc07babd5ca53fec3df |
|
BLAKE2b-256 | 3ad69b0c1dc1e3bb6628a2ced85af6d50be41abeba203649d564a918ca65f710 |
Close
Hashes for django_df_api_drf-1.0.0a2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ff253272b7c8a61b0e5fdc2174a77eef7c7178c3e40b12893397e0db30566599 |
|
MD5 | 5033a3cc0bbcdb5381d000b7ab3f8863 |
|
BLAKE2b-256 | 48bb49fe1fa925b0869bd82407e157c8f5c028a0722e583858816542884e8562 |