Commit 3ef58a5f authored by Michal Čihař's avatar Michal Čihař

Move settings import where it belongs

parent 6c6f6c3a
...@@ -70,6 +70,7 @@ from weblate.trans.checks.source import EllipsisCheck ...@@ -70,6 +70,7 @@ from weblate.trans.checks.source import EllipsisCheck
# Initialize checks list # Initialize checks list
from django.conf import settings
CHECKS = {} CHECKS = {}
for path in getattr(settings, 'CHECK_LIST', DEFAULT_CHECK_LIST): for path in getattr(settings, 'CHECK_LIST', DEFAULT_CHECK_LIST):
i = path.rfind('.') i = path.rfind('.')
......
...@@ -20,7 +20,6 @@ ...@@ -20,7 +20,6 @@
from django.utils.translation import ugettext_lazy as _ from django.utils.translation import ugettext_lazy as _
from django.core.exceptions import ImproperlyConfigured from django.core.exceptions import ImproperlyConfigured
from django.conf import settings
from django.core.cache import cache from django.core.cache import cache
from xml.etree import cElementTree from xml.etree import cElementTree
import weblate import weblate
......
...@@ -20,7 +20,6 @@ ...@@ -20,7 +20,6 @@
from django.utils.translation import ugettext_lazy as _ from django.utils.translation import ugettext_lazy as _
from django.core.exceptions import ImproperlyConfigured from django.core.exceptions import ImproperlyConfigured
from django.conf import settings
from django.core.cache import cache from django.core.cache import cache
from xml.etree import cElementTree from xml.etree import cElementTree
import weblate import weblate
......
...@@ -20,7 +20,6 @@ ...@@ -20,7 +20,6 @@
from django.utils.translation import ugettext_lazy as _ from django.utils.translation import ugettext_lazy as _
from django.core.exceptions import ImproperlyConfigured from django.core.exceptions import ImproperlyConfigured
from django.conf import settings
from django.core.cache import cache from django.core.cache import cache
from xml.etree import cElementTree from xml.etree import cElementTree
import weblate import weblate
......
...@@ -20,7 +20,6 @@ ...@@ -20,7 +20,6 @@
from django.utils.translation import ugettext_lazy as _ from django.utils.translation import ugettext_lazy as _
from django.core.exceptions import ImproperlyConfigured from django.core.exceptions import ImproperlyConfigured
from django.conf import settings
from django.core.cache import cache from django.core.cache import cache
from xml.etree import cElementTree from xml.etree import cElementTree
import weblate import weblate
......
...@@ -20,7 +20,6 @@ ...@@ -20,7 +20,6 @@
from django.utils.translation import ugettext_lazy as _ from django.utils.translation import ugettext_lazy as _
from django.core.exceptions import ImproperlyConfigured from django.core.exceptions import ImproperlyConfigured
from django.conf import settings
from django.core.cache import cache from django.core.cache import cache
from xml.etree import cElementTree from xml.etree import cElementTree
import weblate import weblate
......
...@@ -20,7 +20,6 @@ ...@@ -20,7 +20,6 @@
from django.utils.translation import ugettext_lazy as _ from django.utils.translation import ugettext_lazy as _
from django.core.exceptions import ImproperlyConfigured from django.core.exceptions import ImproperlyConfigured
from django.conf import settings
from django.core.cache import cache from django.core.cache import cache
from xml.etree import cElementTree from xml.etree import cElementTree
import weblate import weblate
......
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