Skip to content
Snippets Groups Projects
Commit d7df4f31 authored by Jean-Baptiste's avatar Jean-Baptiste
Browse files

syntax: update readme for LDPModel and ldp_path

parent 99b3ca9b
No related branches found
No related tags found
No related merge requests found
......@@ -29,9 +29,10 @@ django-admin startproject myldpserver
3. Create your django model inside a file myldpserver/myldpserver/models.py
```
from django.db import models
from djangoldp.models import LDPModel
class Todo(models.Model):
class Todo(LDPModel):
ldp_path = "/my-path/"
name = models.CharField(max_length=255)
deadline = models.DateTimeField()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment