Skip to content
Snippets Groups Projects
Commit 370838db authored by Sébastien Helleu's avatar Sébastien Helleu
Browse files

Fix links to validate HTML/CSS, set min Django version to 1.10

parent 6e48c3c8
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -18,7 +18,7 @@ image:https://travis-ci.org/weechat/weechat.org.svg?branch=master["Build Status"
Following packages are *required*:
 
* python >= 2.7
* python-django >= 1.7
* python-django >= 1.10
* python-pygments
* a database supported by Django, for example SQLite, PostgreSQL or MySQL.
 
Loading
Loading
Loading
Loading
@@ -104,38 +104,27 @@ REPO_DIR = path.normpath(path.join(BASE_DIR, '..', 'repo'))
# Make this unique, and don't share it with anybody.
SECRET_KEY = '' # set it in settings_local.py
 
if DJANGO_VERSION >= (1, 10):
# Django >= 1.10
TEMPLATES = [
{
'BACKEND': 'django.template.backends.django.DjangoTemplates',
'DIRS': [
path.join(BASE_DIR, 'templates'),
TEMPLATES = [
{
'BACKEND': 'django.template.backends.django.DjangoTemplates',
'DIRS': [
path.join(BASE_DIR, 'templates'),
],
'APP_DIRS': True,
'OPTIONS': {
'context_processors': [
'django.contrib.auth.context_processors.auth',
'django.template.context_processors.debug',
'django.template.context_processors.i18n',
'django.template.context_processors.media',
'django.template.context_processors.request',
'django.template.context_processors.static',
'django.template.context_processors.tz',
'django.contrib.messages.context_processors.messages',
],
'APP_DIRS': True,
'OPTIONS': {
'context_processors': [
'django.contrib.auth.context_processors.auth',
'django.template.context_processors.debug',
'django.template.context_processors.i18n',
'django.template.context_processors.media',
'django.template.context_processors.static',
'django.template.context_processors.tz',
'django.contrib.messages.context_processors.messages',
],
},
},
]
else:
# Django <= 1.9.x
TEMPLATE_DEBUG = DEBUG
TEMPLATE_LOADERS = (
'django.template.loaders.filesystem.Loader',
'django.template.loaders.app_directories.Loader',
)
TEMPLATE_DIRS = (
path.join(BASE_DIR, 'templates'),
)
},
]
 
MIDDLEWARE_CLASSES = (
'django.middleware.common.CommonMiddleware',
Loading
Loading
Loading
Loading
@@ -10,6 +10,6 @@
{% trans "Oh no! This page does not exist..." %}
<br><br>
{% trans "You can go back to WeeChat home with link below,<br>or report broken link to" %}
<a href="mailto:{% txt2html "webmaster@weechat.org" %}?subject=Broken link on weechat site: {{ request_path }}">{% txt2html "webmaster@weechat.org" %}</a>
<a href="mailto:{% txt2html "webmaster@weechat.org" %}?subject=Broken link on weechat site: {{ request.build_absolute_uri|urlencode }}">{% txt2html "webmaster@weechat.org" %}</a>
 
{% endblock error_message %}
Loading
Loading
@@ -84,8 +84,8 @@
<a href="{% url 'about_weechat.org' %}">{% trans "About WeeChat.org" %}</a>
&mdash;
{% trans "Valid" %}:
<a href="http://validator.w3.org/check?uri=referer" target="_blank">HTML5</a> |
<a href="http://jigsaw.w3.org/css-validator/check/referer" target="_blank">CSS</a> |
<a href="http://validator.w3.org/check?uri={{ request.build_absolute_uri|urlencode }}" target="_blank">HTML5</a> |
<a href="https://jigsaw.w3.org/css-validator/validator?uri={{ request.build_absolute_uri|urlencode }}" target="_blank">CSS</a> |
<a href="http://www.w3.org/TR/WCAG20/" target="_blank" rel="noopener">WCAG 2.0<!-- AAA --></a>
</div>
 
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment