Branch: refs/heads/master Author: Enrico Tröger enrico.troeger@uvena.de Committer: Enrico Tröger enrico.troeger@uvena.de Date: Sun, 30 Jun 2019 12:19:49 UTC Commit: 23cb6f471f60938418a31914e93523f5fafabcfb https://github.com/geany/www.geany.org/commit/23cb6f471f60938418a31914e93523...
Log Message: ----------- Add new, clean URL for querying the latest version: /service/version/
This URL is used by the UpdateChecker plugin.
Modified Paths: -------------- latest_version/urls.py
Modified: latest_version/urls.py 9 lines changed, 7 insertions(+), 2 deletions(-) =================================================================== @@ -19,11 +19,16 @@
urlpatterns = ( # pylint: disable=invalid-name - # compat / special url for the UpdateChecker Geany plugin + # special url for the UpdateChecker Geany plugin url( - r'^service/version.php', + r'^service/version/', TemplateView.as_view(template_name='latest_version.txt', content_type='text/plain'), name='latest_version'), + # legacy url for the UpdateChecker Geany plugin + url( + r'^service/version.php', + TemplateView.as_view(template_name='latest_version.txt', content_type='text/plain'), + name='latest_version_legacy'), )
# register our urlpatterns to the global sitemap generator
-------------- This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).