Import to python package

I need to import Decimal to all my .py files in this python package in my Django project.

Is there a way to do this everywhere and not declare below in each file?

from decimal import * 

I was thinking of adding this line to __init__.pyfor the package, but this does not seem to work

I am using Python 2.7.5

+3
source share

All Articles