move LOGGING after the localsettings import

Otherwise, setting DJANGO_LOG_FILE locally does nothing