Package madrona :: Package common :: Package management :: Package commands :: Module install_media :: Class Command
[hide private]

Class Command

source code

                             object --+    
                                      |    
django.core.management.base.BaseCommand --+
                                          |
                                         Command

Instance Methods [hide private]
 
handle(self, *app_labels, **options)
The actual logic of the command.
source code
 
get_madrona_dir(self) source code
 
get_project_dir(self) source code
 
get_admin_dir(self) source code
 
copy_media_to_root(self, source_dir) source code
 
compile_media(self) source code
 
remove_uncompressed_media(self) source code
 
change_mediaroot_owner(self) source code
 
copy_mediaroot_to_s3(self) source code

Inherited from django.core.management.base.BaseCommand: __init__, create_parser, execute, get_version, print_help, run_from_argv, usage, validate

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Class Variables [hide private]
  media_dirs = ['media']
  ignore_apps = ['django.contrib.admin']
  exclude = ['CVS', '.*', '*~']
  option_list = BaseCommand.option_list+(make_option('--media-ro...
  help = 'Collect media files into a single media directory.'

Inherited from django.core.management.base.BaseCommand: args, can_import_settings, output_transaction, requires_model_validation

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

handle(self, *app_labels, **options)

source code 

The actual logic of the command. Subclasses must implement this method.

Overrides: django.core.management.base.BaseCommand.handle
(inherited documentation)

Class Variable Details [hide private]

option_list

Value:
BaseCommand.option_list+(make_option('--media-root', default= settings\
.MEDIA_ROOT, dest= 'media_root', metavar= 'DIR', help= "Specifies the \
root directory in which to collect media files."), make_option('-n', '\
--dry-run', action= 'store_true', dest= 'dry_run', help= "Do everythin\
g except modify the filesystem."), make_option('-a', '--admin', action\
= 'store_true', dest= 'admin', help= "Include django.contrib.admin sta\
tic media files."), make_option('-d', '--dir', action= 'append', defau\
lt= media_dirs, dest= 'media_dirs', metavar= 'NAME', help= "Specifies \
...