From 6d2ab4c0ca012188d62ef8fe49f914be66a0acd2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Th=C3=A9ophile=20Bastian?= Date: Sun, 24 Sep 2017 18:21:16 +0200 Subject: [PATCH] Update URLs to include api --- bocal/urls.py | 5 +++-- mainsite/urls.py | 2 -- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/bocal/urls.py b/bocal/urls.py index daf78be..1431243 100644 --- a/bocal/urls.py +++ b/bocal/urls.py @@ -18,10 +18,11 @@ from django.contrib import admin import mainsite.urls import markdownx.urls - +import api.urls urlpatterns = [ url(r'^admin/', admin.site.urls), url(r'^markdownx/', include(markdownx.urls)), - url(r'^', include(mainsite.urls.urlpatterns)), + url(r'^api/', include(api.urls)), + url(r'^', include(mainsite.urls)), ] diff --git a/mainsite/urls.py b/mainsite/urls.py index ebd1e5d..c0f6bcf 100644 --- a/mainsite/urls.py +++ b/mainsite/urls.py @@ -1,8 +1,6 @@ from django.conf.urls import url from . import views -app_name = 'manisite' - urlpatterns = [ url(r'^$', views.HomeView.as_view(), name='homepage'), url(r'^ecrire$', views.WriteArticleView.as_view(), name='write_article'),