Update URLs to include api

This commit is contained in:
Théophile Bastian 2017-09-24 18:21:16 +02:00
parent b0f42fbe4b
commit 6d2ab4c0ca
2 changed files with 3 additions and 4 deletions

View file

@ -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)),
]

View file

@ -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'),