librelist archives

« back to archive

A small query about structuring

A small query about structuring

From:
alice ni
Date:
2010-10-20 @ 17:06
Hi , I am using flask on GAE and wanted to work with the blinker library. My
file structure looks like below:-

-MainFolder
  -flask
  -flaskext
  -jinja2
  -werkzeug
  -simplejson
  -MyApp
     -init.py
     -templates
     -static
     -views.py
  -app.yaml
  -index.yaml
  -main.py

Now to use the blinker library I can just paste the blinker package in the
MainFolder along side the flask, flaskext,jinja2 packages  and then import
it into my app. But cant I create a helper folder and paste the blinker
package  in there something like this:-
-helper
  -__init__.py
  -blinker

However I get an import error when I do the import -from helper.blinker
import Signal in my app. Could someone tell me where I am going wrong.