|
|
||
|---|---|---|
| gas_drf | ||
| LICENSE.txt | ||
| changelog.md | ||
| readme.md | ||
| requirements.txt | ||
| runtests.py | ||
| setup.cfg | ||
| setup.py | ||
| test_requirements.txt | ||
readme.md
GAS
DRF support for django-gas.
Helps working with an API restricted to gas roles.
Instalation
-
Install
django-gas-drfpackage:pip install django-gas-drf
-
Add
gas-drfurls to project'surls.py:import gas_drf.sites
urlpatterns = [ path('control-panel-api/', include(gas_drf.sites.site.urls)), ]
Integration
Create a submodule gas.drf_config in your django app.
-\ yourapp
\gas
__init__.py
drf_config.py
admin.py
models.py
...
Edit this drf_config.py file to register your code into gas-drf. For
examples look at drf_gas.gas.users_drf_config module.
Gas DRF comes with basic user management. To enable this import
gas_drf.gas.users_drf_config from any gas.drf_config of your installed
apps.
Licenses
The license of the code is GPLv3.