次のファイルを使用してdjangoプロジェクトを作成しています:
ttam_container
-utils.py
-ttam
-views.py
utils.pyモジュール内のコード:
def random_string():
...
def remove_blanks():
...
...other functions...
内のコードviews.py:
from utils import *
def get_sequences(request):
...
string = random_string()
...
sequences = remove_blanks(sequences_with_blanks)
...
その後、エラーglobal name remove_blanks' is not definedが報告されます。utils.pyそもそも正しいものをインポートしていないと思っていましたが、うまくいきましたrandom_string ...
何が起こっているのか分かりますか?