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