Commit b89a7310 authored by Alexandre's avatar Alexandre

Update README.md

parent 376cdb54
...@@ -15,6 +15,7 @@ It aims at enabling people with little development skills to serve their own dat ...@@ -15,6 +15,7 @@ It aims at enabling people with little development skills to serve their own dat
1. Add this module to your application, or place it in a directory included in your PYTHONPATH 1. Add this module to your application, or place it in a directory included in your PYTHONPATH
2. Create your model normally 2. Create your model normally
3. Add a url in your urls.py: 3. Add a url in your urls.py:
``` ```
from djangoldp.views import LDPViewSet from djangoldp.views import LDPViewSet
from .models import MyModel from .models import MyModel
...@@ -24,6 +25,7 @@ urlpatterns = [ ...@@ -24,6 +25,7 @@ urlpatterns = [
url(r'^admin/', admin.site.urls), 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. This creates 2 routes, one for the list, and one with an ID listing the detail of an object.
## License ## License
......
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