From 1d5723d118cb902ba3b4cd65286a9fc3ebfcb8aa Mon Sep 17 00:00:00 2001 From: Sylvain Le Bon <sylvain@happy-dev.fr> Date: Tue, 8 May 2018 22:25:46 +0000 Subject: [PATCH] Update README.md --- README.md | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 01924624..2c43d275 100644 --- a/README.md +++ b/README.md @@ -50,7 +50,14 @@ urlpatterns = [ This creates 2 routes, one for the list, and one with an ID listing the detail of an object. -4. You can also register your model for the django administration site +4. In the settings.py file, add your application name at the beginning of the application list, and add the following lines + +``` +STATIC_ROOT = os.path.join(os.path.dirname(BASE_DIR), 'static') +LDP_RDF_CONTEXT = 'https://cdn.happy-dev.fr/owl/hdcontext.jsonld' +``` + +5. You can also register your model for the django administration site ``` from django.contrib import admin @@ -59,7 +66,7 @@ from .models import Todo admin.site.register(Todo) ``` -5. You then need to have your WSGI server pointing on myldpserver/myldpserver/wsgi.py +6. You then need to have your WSGI server pointing on myldpserver/myldpserver/wsgi.py ## Execution To start the server, `cd` to the root of your Django project and run : -- GitLab