Commit 253e788b authored by Benoit Alessandroni's avatar Benoit Alessandroni

Adding default settings

parent 3a3ab5c7
__version__ = '0.0.0'
name = "djangoldp_example"
name = "djangoldp_like"
from django.contrib import admin
from .models import ExampleModel
from .models import Like
admin.site.register(ExampleModel)
admin.site.register(Like)
from django.apps import AppConfig
class DjangoldpExampleConfig(AppConfig):
name = 'djangoldp_example'
name = 'djangoldp_like'
from django.db import models
class ExampleModel(models.Model):
class Like(models.Model):
# Please refer to Django documentation
"""djangoldp project URL Configuration"""
from django.conf.urls import url
from djangoldp.views import LDPViewSet
from .models import ExampleModel
urlpatterns = [
url(r'^examples/', LDPViewSet.urls(model=ExampleModel)),
]
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