I have a Django function "get_data_from_text_file()" that I want to test run from the command line. I tried:
>>> import v1.views
>>> get_data_from_text_file("kk")
Traceback (most recent call last):
File "<input>", line 1, in <module>
NameError: name 'get_data_from_text_file' is not defined
Why is it not defined if its imported sucessfully?
v1.views.get_data_from_text_fileis my guess . . .python manage.py shelland use that instead of your normal python shell.