wiki-eleves/WikiENS/urls.py
2017-10-06 14:17:13 +02:00

17 lines
503 B
Python

from django.conf.urls import url, include
from django.contrib import admin
from django.views.generic import RedirectView
from django.urls import reverse_lazy
from wiki.urls import get_pattern as get_wiki_pattern
from django_nyt.urls import get_pattern as get_nyt_pattern
redirect_home_view = RedirectView.as_view(url=reverse_lazy('home'))
urlpatterns = [
url(r'^admin/', admin.site.urls),
url(r'^notifications/', get_nyt_pattern()),
url(r'', get_wiki_pattern()),
]
# TODO add MEDIA_ROOT