TypeError at /dispenser/
'NoneType' object has no attribute 'getitem'
Request Method: GET
Request URL: http://localhost:8000/dispenser/
Django Version: 1.6.2
Exception Type: TypeError
Exception Value:
'NoneType' object has no attribute 'getitem'
Exception Location: c:\Users\Logan\Desktop\cornellcup\IonMedicationSystem\IonWeb\helper\RxNorm.py in getName, line 24
Python Executable: c:\Python27\python.exe
Python Version: 2.7.5
Python Path:
['c:\Users\Logan\Desktop\cornellcup\IonMedicationSystem\IonWeb',
'C:\root\bin',
'C:\Windows\system32\python27.zip',
'c:\Python27\DLLs',
'c:\Python27\lib',
'c:\Python27\lib\plat-win',
'c:\Python27\lib\lib-tk',
'c:\Python27',
'c:\Python27\lib\site-packages']
Server time: Sat, 26 Apr 2014 14:28:28 -0400
Error during template rendering
In template c:\Users\Logan\Desktop\cornellcup\IonMedicationSystem\IonWeb\IonWeb\templates\dispenser.html, error at line 31
'NoneType' object has no attribute 'getitem'
21
TypeError at /dispenser/ 'NoneType' object has no attribute 'getitem' Request Method: GET Request URL: http://localhost:8000/dispenser/ Django Version: 1.6.2 Exception Type: TypeError Exception Value:
'NoneType' object has no attribute 'getitem' Exception Location: c:\Users\Logan\Desktop\cornellcup\IonMedicationSystem\IonWeb\helper\RxNorm.py in getName, line 24 Python Executable: c:\Python27\python.exe Python Version: 2.7.5 Python Path:
['c:\Users\Logan\Desktop\cornellcup\IonMedicationSystem\IonWeb', 'C:\root\bin', 'C:\Windows\system32\python27.zip', 'c:\Python27\DLLs', 'c:\Python27\lib', 'c:\Python27\lib\plat-win', 'c:\Python27\lib\lib-tk', 'c:\Python27', 'c:\Python27\lib\site-packages'] Server time: Sat, 26 Apr 2014 14:28:28 -0400 Error during template rendering
In template c:\Users\Logan\Desktop\cornellcup\IonMedicationSystem\IonWeb\IonWeb\templates\dispenser.html, error at line 31 'NoneType' object has no attribute 'getitem' 21
My Dispensers
2223 {% for dispenser in dispensers %} 24
{{ dispenser.location }}
25No longer can add empty compartments to dispenser