Module Expr Str Import alias Import alias ImportFrom alias ImportFrom alias Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad keyword NameLoad ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam NameParam defaults body Return Str decorator_list FunctionDef arguments args NameParam NameParam defaults body Return BinOpMod Str TupleLoad Call AttributeLoad NameLoad attr Num Num NameLoad decorator_list Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad keyword Str Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad keyword Str keyword Str decorator_list
N/A N/A 
42. Storing files according to a custom storage system

``FileField`` and its variations can take a ``storage`` argument to specify how
and where files should be stored.
 N/A random N/A tempfile django.db models django.core.files.storage FileSystemStorage N/A temp_storage_location N/A N/A tempfile mkdtemp N/A temp_storage N/A FileSystemStorage location temp_storage_location Storage N/A N/A models Model N/A custom_upload_to N/A N/A self filename N/A N/A N/A foo N/A random_upload_to N/A N/A self filename N/A N/A N/A N/A %s/%s N/A N/A N/A random randint 100 999 filename N/A N/A normal N/A N/A models FileField storage temp_storage upload_to tests N/A custom N/A N/A models FileField storage temp_storage upload_to custom_upload_to N/A random N/A N/A models FileField storage temp_storage upload_to random_upload_to N/A default N/A N/A models FileField storage temp_storage upload_to tests default tests/default.txt N/A