Commit 376cdb54 authored by Sylvain Le Bon's avatar Sylvain Le Bon

Add readme

parent 54851033
## Synopsis
This module is an add-on for Django REST Framework that serves a django model respecting the Linked Data Platform convention.
It aims at enabling people with little development skills to serve their own data, to be used with a LDP application.
## Requirements
* Django (known to work with django 1.11)
* Django Rest Framework
* pyld
## Installation
1. Add this module to your application, or place it in a directory included in your PYTHONPATH
2. Create your model normally
3. Add a url in your
from djangoldp.views import LDPViewSet
from .models import MyModel
urlpatterns = [
url(r'^my-model/', include(LDPViewSet.urls(model=MyModel))),
This creates 2 routes, one for the list, and one with an ID listing the detail of an object.
## License
No licence yet. Please wait...
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment