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' ...@@ -516,7 +516,7 @@ SERVER_EMAIL = 'noreply@weblate.org'
# the site managers. Used for registration emails. # the site managers. Used for registration emails.
DEFAULT_FROM_EMAIL = 'noreply@weblate.org' 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 = [] ALLOWED_HOSTS = []
# Example configuration to use memcached for caching # Example configuration to use memcached for caching
......
...@@ -152,13 +152,12 @@ def performance(request): ...@@ -152,13 +152,12 @@ def performance(request):
settings.SECRET_KEY != settings_example.SECRET_KEY, settings.SECRET_KEY != settings_example.SECRET_KEY,
'production-secret', 'production-secret',
)) ))
# Allowed hosts for Django 1.5 # Allowed hosts
if django.VERSION > (1, 5): checks.append((
checks.append(( _('Allowed hosts'),
_('Allowed hosts'), len(settings.ALLOWED_HOSTS) > 0,
len(settings.ALLOWED_HOSTS) > 0, 'production-hosts',
'production-hosts', ))
))
# Cached template loader # Cached template loader
checks.append(( 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