I am writing a django project with follwing files:
ttam_container
-utils.py
-ttam
-views.py
Codes within utils.py
module:
def random_string():
...
def remove_blanks():
...
...other functions...
Codes within views.py
:
from utils import *
def get_sequences(request):
...
string = random_string()
...
sequences = remove_blanks(sequences_with_blanks)
...
The error global name remove_blanks' is not defined
is then reported. I thought I didn't import the utils.py
correcty in the first place, but the random_string
works...
Any idea what's happening?