<s> from django . core . exceptions import ImproperlyConfigured <EOL> from django . utils . module_loading import import_by_path <EOL> from django . contrib . formtools . wizard . storage . base import BaseStorage <EOL> from django . contrib . formtools . wizard . storage . exceptions import ( <EOL> MissingStorage , NoFileStorageConfigured ) <EOL> def get_storage ( path , * args , ** kwargs ) : <EOL> try : <EOL> storage_class = import_by_path ( path ) <EOL> except ImproperlyConfigured as e : <EOL> raise MissingStorage ( '<STR_LIT>' % e ) <EOL> return storage_class ( * args , ** kwargs ) </s>
