Lorem ipsum
Detailed documentation is in the "docs" directory.
- Install app
$ pip install -U dj-dbchiro-roles
- Configure
INSTALLED_APPS
:
INSTALLED_APPS = (
'django.contrib.admin',
'django.contrib.auth',
(...),
'rest_framework',
'roles',
(...),
)
- Configure
urls.py
:
urlpatterns = [
path('admin/', admin.site.urls),
path('api-auth/', include('rest_framework.urls')),
(...),
path('api/v1/', include('app_name.urls')),
(...),
]
- Run
python manage.py migrate
to create the polls models. - Start the development server and visit http://127.0.0.1:8000/admin/ to create a role (you'll need the Admin app enabled).
- Visit http://127.0.0.1:8000/api/v1/... to view roles API.