views:

36

answers:

2

I have a django app running on appengine and it works fine. Now I want to extend it to use a third party python package - googleanalytics. No matter where I put this package django complaints about not finding it (Error was: No module named googleanalytics).

My dir structure is as follows-

app.yaml
myproject
  -settings.py
  -manage.py
  -templates
  -googleanalytics
  -urls.py
  -myapp
    -views.py (uses googleanalytics package)

Per some suggestions here I also tried using -
sys.path.insert(0, ROOT_PATH) I also tried some other paths with this but nothing seems to work. I installed the package and even that does not work.

Any pointers would be appreciated!

Thanks Vivek

A: 

Hello, try with:

sys.path.insert (0, os.path.abspath (
  os.path.join (os.path.dirname (__file__), 'googleanalytics')))
sahid
Sahid - That did not work. Its almost like something resetting the path after this.
Vivek