Re: Accessing database table

2014-01-08 Thread Lachlan Musicman
If it's in the app itself, try import .models? On 9 January 2014 15:27, Don Fox wrote: > In my manage.py shell I can load the following module: > from userprofile.models import NPIdata > > However inside a file of utility functions located in the userprofile app > the same import statement yiel

Accessing database table

2014-01-08 Thread Don Fox
In my manage.py shell I can load the following module: *from userprofile.models import NPIdata* However inside a file of utility functions located in the userprofile app the same import statement yields *ImportError:* 'No module named userprofile.models' I'm mystified! Any hints or help welc