You should not put code in settings.pythat requires importing anything from any part of Django. Since many parts of Django require settings to be available, this is likely to cause cyclic import issues.
ROOT_URLCONF (urls.py) , Python , , - .
( , ), models.py __init__.py.
. .