Branch: refs/heads/master Author: Enrico Tröger enrico.troeger@uvena.de Committer: Enrico Tröger enrico.troeger@uvena.de Date: Sun, 05 Jan 2014 18:18:24 UTC Commit: 91acbed5c58197b465b6742acec444fbcaffe81b https://github.com/geany/www.geany.org/commit/91acbed5c58197b465b6742acec444...
Log Message: ----------- Add Mezzanine's custom error page handlers to get STATIC_URL resolved in templates
Modified Paths: -------------- latest_version/urls.py nightlybuilds/urls.py pastebin/urls.py static_docs/urls.py
Modified: latest_version/urls.py 8 files changed, 6 insertions(+), 2 deletions(-) =================================================================== @@ -3,12 +3,12 @@ # 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/.
@@ -23,3 +23,7 @@ content_type='text/plain'), name='latest_version'), ) + +# Adds ``STATIC_URL`` to the context of error pages, so that error pages can use JS, CSS and images. +handler404 = "mezzanine.core.views.page_not_found" +handler500 = "mezzanine.core.views.server_error"
Modified: nightlybuilds/urls.py 4 files changed, 4 insertions(+), 0 deletions(-) =================================================================== @@ -30,3 +30,7 @@ # use our custom sitemap implementation url(r"^sitemap.xml$", 'django.contrib.sitemaps.views.sitemap', sitemaps) ) + +# Adds ``STATIC_URL`` to the context of error pages, so that error pages can use JS, CSS and images. +handler404 = "mezzanine.core.views.page_not_found" +handler500 = "mezzanine.core.views.server_error"
Modified: pastebin/urls.py 4 files changed, 4 insertions(+), 0 deletions(-) =================================================================== @@ -47,3 +47,7 @@ # use our custom sitemap implementation url(r"^sitemap.xml$", 'django.contrib.sitemaps.views.sitemap', sitemaps) ) + +# Adds ``STATIC_URL`` to the context of error pages, so that error pages can use JS, CSS and images. +handler404 = "mezzanine.core.views.page_not_found" +handler500 = "mezzanine.core.views.server_error"
Modified: static_docs/urls.py 8 files changed, 6 insertions(+), 2 deletions(-) =================================================================== @@ -3,12 +3,12 @@ # 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/.
@@ -22,3 +22,7 @@ url(r'^documentation/releasenotes/$', ReleaseNotesView.as_view(), name='releasenotes'), url(r'^documentation/releasenotes/(?P<version>.*)$', ReleaseNotesView.as_view(), name='releasenotes_for_release'), ) + +# Adds ``STATIC_URL`` to the context of error pages, so that error pages can use JS, CSS and images. +handler404 = "mezzanine.core.views.page_not_found" +handler500 = "mezzanine.core.views.server_error"
-------------- This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).