~widelands-dev/widelands-website/trunk

« back to all changes in this revision

Viewing changes to mainpage/urls.py

  • Committer: kaputtnik
  • Author(s): janus-jhor
  • Date: 2019-08-02 19:37:24 UTC
  • Revision ID: kaputtnik-20190802193724-hoq3ef9ocueqpr4g
fixed urls for sitemap.xml and robots.txt

Show diffs side-by-side

added added

removed removed

Lines of Context:
13
13
 
14
14
urlpatterns = [
15
15
    # Creating a sitemap.xml
16
 
    url(r'^sitemap\.xml/', include('mainpage.sitemap_urls')),
 
16
    url(r'^sitemap\.xml', include('mainpage.sitemap_urls')),
17
17
    # Static view of robots.txt
18
 
    url(r'^robots\.txt/', TemplateView.as_view(template_name='robots.txt', content_type="text/plain")),
 
18
    url(r'^robots\.txt', TemplateView.as_view(template_name='robots.txt', content_type="text/plain")),
19
19
 
20
20
    # Uncomment the next line to enable the admin:
21
21
    url(r'^admin/', admin.site.urls),