Update URLs to include api
This commit is contained in:
parent
b0f42fbe4b
commit
6d2ab4c0ca
2 changed files with 3 additions and 4 deletions
|
@ -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)),
|
||||
]
|
||||
|
|
|
@ -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'),
|
||||
|
|
Loading…
Reference in a new issue