import views from an app to custom management command

i have a custom management command to which I would like to import one of my app’s views. Tried using import as below but won’t work, while running as a standalone script.

from files.views import upload_log_file_without_request

below is my project structure and watch_logfiles.py is the custom command where i want to import the views from my files app.
project structure 12 9 2024

Please post the full error you are receiving, along with the traceback (if any).

It will likely be helpful if you posted the full management command as well.