So, there is a huge Django app with multiple classes in Model. I am
interested in getting call stacks of some classes. I have few questions in
the approach and few questions regarding the implementation. I am using
Django 1.4.20 and python 2.7
1. What if we decide to write a decorator for the
a file called "maps.txt" which is
also in same directory as dataintegrator.py. When I execute script from
command line it can read file but execution from web interface gives
exception.
IOError: [Errno 2] No such file or directory: 'maps.txt'
Even the maps.txt file exists i
sts in database or not
'''
users = User.objects.filter(username=uname, password=pwd)
if len(users) >0:
print "Access granted"
return True
else:
print "Access denied"
return False
###