From ced5ef87c071f1d16b5ea7494c4324739784a1a3 Mon Sep 17 00:00:00 2001 From: Aron Podrigal Date: Thu, 7 Jan 2016 06:05:46 -0500 Subject: [PATCH] Do not import django at top level in __init__.py --- django_seed/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/django_seed/__init__.py b/django_seed/__init__.py index 1bed14a..0309a78 100644 --- a/django_seed/__init__.py +++ b/django_seed/__init__.py @@ -1,5 +1,4 @@ -from django.conf import settings import random @@ -22,6 +21,7 @@ def __init__(self): @staticmethod def codename(locale=None): + from django.conf import settings locale = locale or getattr(settings,'LANGUAGE_CODE', None) codename = locale or 'default' return codename