Go to file
Ales (Shagi) Zabala Alava d9ee0b9920 Minor bugfixes 2022-03-21 18:00:20 +01:00
gas_drf Minor bugfixes 2022-03-21 18:00:20 +01:00
.gitignore Minor bugfixes 2022-03-21 18:00:20 +01:00
LICENSE.txt Initial Commit 2022-03-21 17:48:13 +01:00
changelog.md Minor bugfixes 2022-03-21 18:00:20 +01:00
readme.md Minor bugfixes 2022-03-21 18:00:20 +01:00
requirements.txt Initial Commit 2022-03-21 17:48:13 +01:00
runtests.py Initial Commit 2022-03-21 17:48:13 +01:00
setup.cfg Minor bugfixes 2022-03-21 18:00:20 +01:00
setup.py Initial Commit 2022-03-21 17:48:13 +01:00
test_requirements.txt Initial Commit 2022-03-21 17:48:13 +01:00

readme.md

GAS-DRF

DRF support for django-gas.

Helps working with an API restricted to gas roles.

Instalation

  1. Install django-gas-drf package:

    pip install django-gas-drf

  2. Add gas-drf urls to project's urls.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.