Re: Import a custom py file into views.py

2012-02-09 Thread Adnan Sadzak
How python treat some folder as module? You need to add __init__.py into it. On Thu, Feb 9, 2012 at 11:33 AM, Daniel Roseman wrote: > > On Thursday, 9 February 2012 10:21:29 UTC, Alessandro Candini wrote: >> >> Hi list. >> In my project named STO I have the 'jsonopenlayers' app with the >> follo

Re: Import a custom py file into views.py

2012-02-09 Thread Daniel Roseman
On Thursday, 9 February 2012 10:21:29 UTC, Alessandro Candini wrote: > > Hi list. > In my project named STO I have the 'jsonopenlayers' app with the > following structure: > > STO > ├── __init__.py > ├── jsonopenlayers > │ ├── ingestion > │ │ └── ingestShp.py > │ ├── __init__.py > │ ├── models.py

Import a custom py file into views.py

2012-02-09 Thread Alessandro Candini
Hi list. In my project named STO I have the 'jsonopenlayers' app with the following structure: STO ├── __init__.py ├── jsonopenlayers │ ├── ingestion │ │ └── ingestShp.py │ ├── __init__.py │ ├── models.py │ └── views.py ├── manage.py └── settings.py What I would like to do is to import the fun