﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
10703	Helper for importing modules from installed apps	Archatas	nobody	"It would be really convenient to create extensible and reusable apps, if there was a simple way to import dynamically from an installed app (without defining the full path).

For example, there could be the following function defined somewhere in django.utils or django.db.models:

{{{
from django.db import models
from django.utils import importlib

def import_installed(path):
    """"""
    Imports a module from an installed app

    >>> import_installed(""myapp.forms"")
    <module 'myproject.apps.myapp.forms'>
    """"""
    app_name, module = path.split(""."", 1)
    app = models.get_app(app_name)
    return importlib.import_module(app.__name__[:-6] + module)
}}}
"		closed	Core (Other)	1.1-beta		wontfix	reusable utility extensible import dynamic		Unreviewed	0	0	0	0	0	0
