Commit 14586517 authored by Michal Čihař's avatar Michal Čihař

Remove Django version check, we do not support older versions

Signed-off-by: default avatarMichal Čihař <michal@cihar.com>
parent 221d41c0
......@@ -516,7 +516,7 @@ SERVER_EMAIL = 'noreply@weblate.org'
# the site managers. Used for registration emails.
DEFAULT_FROM_EMAIL = 'noreply@weblate.org'
# List of URLs your site is supposed to serve, required since Django 1.5
# List of URLs your site is supposed to serve
ALLOWED_HOSTS = []
# Example configuration to use memcached for caching
......
......@@ -152,13 +152,12 @@ def performance(request):
settings.SECRET_KEY != settings_example.SECRET_KEY,
'production-secret',
))
# Allowed hosts for Django 1.5
if django.VERSION > (1, 5):
checks.append((
_('Allowed hosts'),
len(settings.ALLOWED_HOSTS) > 0,
'production-hosts',
))
# Allowed hosts
checks.append((
_('Allowed hosts'),
len(settings.ALLOWED_HOSTS) > 0,
'production-hosts',
))
# Cached template loader
checks.append((
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment