Yo can only import modules that are visible by your environment. You can check the environment using this.
import sys
print sys.path
As you will see sys.path is a list so you can append elements to it:
sys.path.append('/path_to_app/config')
And you should be able to import your module.
BTW: There is plenty of questions about this.