Support IndexNox
This commit is contained in:
parent
6bd0df1f34
commit
9b4bb6c9f1
5 changed files with 53 additions and 4 deletions
|
@ -10,6 +10,7 @@ from wagtail.documents import urls as wagtaildocs_urls
|
|||
from blog.feeds import RssBlogFeed
|
||||
from search import views as search_views
|
||||
from wagtail.contrib.sitemaps.views import sitemap
|
||||
from base.views import KeyView
|
||||
|
||||
urlpatterns = [
|
||||
path("django-admin/", admin.site.urls),
|
||||
|
@ -18,7 +19,8 @@ urlpatterns = [
|
|||
path("search/", search_views.search, name="search"),
|
||||
path("blog/feed/", RssBlogFeed(), name="blog_feed"),
|
||||
path('sitemap.xml', sitemap),
|
||||
path('robots.txt', TemplateView.as_view(template_name="robots.txt", content_type="text/plain"))
|
||||
path('robots.txt', TemplateView.as_view(template_name="robots.txt", content_type="text/plain")),
|
||||
path('<str:key>.txt', KeyView.as_view())
|
||||
]
|
||||
|
||||
if settings.DEBUG:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue