[geany/www.geany.org] 8828d6: Cleanup sitemaps and properly add Pastebin app
Enrico Tröger
git-noreply at xxxxx
Sat May 11 13:15:52 UTC 2019
Branch: refs/heads/master
Author: Enrico Tröger <enrico.troeger at uvena.de>
Committer: Enrico Tröger <enrico.troeger at uvena.de>
Date: Sun, 14 Apr 2019 22:41:39 UTC
Commit: 8828d6f164e2ad18c63280f8b7a2525eac1c0896
https://github.com/geany/www.geany.org/commit/8828d6f164e2ad18c63280f8b7a2525eac1c0896
Log Message:
-----------
Cleanup sitemaps and properly add Pastebin app
Modified Paths:
--------------
geany/urls.py
nightlybuilds/urls.py
pastebin/urls.py
Modified: geany/urls.py
2 lines changed, 1 insertions(+), 1 deletions(-)
===================================================================
@@ -52,7 +52,7 @@
url(r"^", include("static_docs.urls")),
# nightly builds
- url(r"^download/nightly-builds/$", NightlyBuildsView.as_view()),
+ url(r"^download/nightly-builds/$", NightlyBuildsView.as_view(), name='nightlybuilds'),
# /service/version.php (for the UpdateChecker plugin)
url(r"^", include("latest_version.urls")),
Modified: nightlybuilds/urls.py
33 lines changed, 0 insertions(+), 33 deletions(-)
===================================================================
@@ -1,33 +0,0 @@
-# coding: utf-8
-# LICENCE: This program is free software: you can redistribute it and/or modify
-# it under the terms of the GNU Affero General Public License as published by
-# the Free Software Foundation, either version 3 of the License, or
-# (at your option) any later version.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU Affero General Public License for more details.
-#
-# You should have received a copy of the GNU Affero General Public License
-# along with this program. If not, see <http://www.gnu.org/licenses/>.
-
-from django.conf.urls import url
-
-from geany.sitemaps import StaticSitemap
-from nightlybuilds.views import NightlyBuildsView
-
-
-urlpatterns = [
- # no admin on this site
- url(r'^admin/', 'mezzanine.core.views.page_not_found'),
-
- url(r'^$', NightlyBuildsView.as_view(), name='home'),
-]
-
-# Sitemap framework
-sitemaps = {"sitemaps": {"all": StaticSitemap('nightly.geany.org', urlpatterns)}}
-urlpatterns += (
- # use our custom sitemap implementation
- url(r"^sitemap\.xml$", 'django.contrib.sitemaps.views.sitemap', sitemaps),
-)
Modified: pastebin/urls.py
8 lines changed, 2 insertions(+), 6 deletions(-)
===================================================================
@@ -16,7 +16,7 @@
from django.views.decorators.cache import never_cache
from django.views.generic.base import TemplateView
-from geany.sitemaps import StaticSitemap
+from geany.sitemaps import sitemap_registry, StaticSitemap
from pastebin.views import (
LatestSnippetsView,
SnippetAPIView,
@@ -42,8 +42,4 @@
# Sitemap framework
-#sitemaps = {"sitemaps": {"all": StaticSitemap(settings.SITE_DOMAIN_PASTEBIN, urlpatterns)}}
-#urlpatterns += (
-# # use our custom sitemap implementation
-# url(r"^sitemap\.xml$", 'django.contrib.sitemaps.views.sitemap', sitemaps),
-#)
+sitemap_registry.add(StaticSitemap, urlpatterns)
--------------
This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).
More information about the Commits
mailing list