From 3817e96901d0398e0ad333411d924f8cd6656d57 Mon Sep 17 00:00:00 2001 From: Jacek Lebioda <jacek.lebioda.001@student.uni.lu> Date: Thu, 26 Jan 2017 16:19:24 +0100 Subject: [PATCH] Simple API for autocomplete --- smash/smash/urls.py | 4 +++- todos.txt | 2 ++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/smash/smash/urls.py b/smash/smash/urls.py index 53e2f4c5..e2a8cc8f 100644 --- a/smash/smash/urls.py +++ b/smash/smash/urls.py @@ -20,8 +20,10 @@ from django.conf import settings from django.conf.urls.static import static import web.urls +import web.api_urls urlpatterns = [ url(r'^admin/', admin.site.urls), - url(r'', include(web.urls)) + url(r'', include(web.urls)), + url(r'^api/', include(web.api_urls)) ] + static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT) diff --git a/todos.txt b/todos.txt index e7d8c805..a26952d5 100644 --- a/todos.txt +++ b/todos.txt @@ -5,6 +5,8 @@ - implement `on leave` button - what about possible sunday in availabilities? - make some names sound/look more pythonic + - in beta remember to disable Guest Access + - in beta remember to forbid not-logged users to browse the API ** Visual - None -- GitLab