Add bump version, add robots.txt
This commit is contained in:
parent
e55aeb5c71
commit
6bd0df1f34
4 changed files with 57 additions and 3 deletions
|
@ -1,6 +1,7 @@
|
|||
from django.conf import settings
|
||||
from django.urls import include, path
|
||||
from django.contrib import admin
|
||||
from django.views.generic.base import TemplateView
|
||||
|
||||
from wagtail.admin import urls as wagtailadmin_urls
|
||||
from wagtail import urls as wagtail_urls
|
||||
|
@ -17,9 +18,9 @@ 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"))
|
||||
]
|
||||
|
||||
|
||||
if settings.DEBUG:
|
||||
from django.conf.urls.static import static
|
||||
from django.contrib.staticfiles.urls import staticfiles_urlpatterns
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue