From http://docs.python.org/2/tutorial/modules.html#intra-package-references :
from .. import settings
Hope it helps
More Related Contents:
- Python: importing a sub‑package or sub‑module
- Can’t import my own modules in Python
- Can’t import my own modules in Python
- Python importing a module from a parallel directory
- Flask(‘application’) versus Flask(__name__)
- How to reference python package when filename contains a period
- What is __init__.py for?
- `from … import` vs `import .` [duplicate]
- Execution of Python code with -m option or not
- What’s the difference between a Python module and a Python package?
- Python 3: ImportError “No Module named Setuptools”
- Adding a module (Specifically pymorph) to Spyder (Python IDE)
- How to import members of all modules within a package?
- How to import all submodules?
- Modules are installed using pip on OSX but not found when importing
- How to access a standard-library module in Python when there is a local module with the same name?
- How to import a module in Python with importlib.import_module
- What could cause a python module to be imported twice?
- Namespaces with Module Imports
- Python3 correct way to import relative or absolute?
- ImportError on python 3, worked fine on python 2.7
- Python import mechanics
- Python import precedence: packages or modules?
- Python: import module from another directory at the same level in project hierarchy
- how to test if one python module has been imported?
- importing a module in nested packages
- from … import OR import … as for modules
- Python modules with identical names (i.e., reusing standard module names in packages)
- How to properly use relative or absolute imports in Python modules?
- What’s the difference between a module and package in Python?