Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
D
Django LDP
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
20
Issues
20
List
Boards
Labels
Milestones
Merge Requests
5
Merge Requests
5
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Container Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Startin blox
djangoldp-packages
Django LDP
Commits
376cdb54
Commit
376cdb54
authored
Jan 07, 2018
by
Sylvain Le Bon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add readme
parent
54851033
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
31 additions
and
0 deletions
+31
-0
README.md
README.md
+31
-0
No files found.
README.md
0 → 100644
View file @
376cdb54
## 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 urls.py:
```
from djangoldp.views import LDPViewSet
from .models import MyModel
urlpatterns = [
url(r'^my-model/', include(LDPViewSet.urls(model=MyModel))),
url(r'^admin/', admin.site.urls),
]
```
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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment