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.0a1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0c50360dcf471442df5fea45e8461ff4ca42d5f62ab392981ffc519b4d4be094 |
|
MD5 | c9dfd5a479b529b4ce2e09e8d1cf186c |
|
BLAKE2b-256 | 9ca34fe2587e45ae5cdd87a4d256b0e479b83963e3ff97faf7dd3c039de69580 |
Close
Hashes for django_df_api_drf-1.0.0a1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c4c2ef6452ffddf5458888a3d20ea84772962befa98e440731c992703d73e161 |
|
MD5 | 4c4f8583e4b385f3fae7d8ea84e30c53 |
|
BLAKE2b-256 | 8e1bfd879321003cc66cd79b27b2d0f63f5893d080af743a8efa46008fa9cc3e |