Module ImportFrom alias Import alias ImportFrom alias Import alias ImportFrom alias ImportFrom alias ImportFrom alias ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam defaults body Expr Str For TupleStore NameStore NameStore Call NameLoad NameLoad body Assign NameStore DictComp AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad comprehension NameStore NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad For NameStore ListLoad Str Str body Assign NameStore BinOpMod Str TupleLoad NameLoad NameLoad Assign NameStore BinOpMod Str NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Dict Str NameLoad For NameStore NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Return ListComp AttributeLoad NameLoad attr comprehension NameStore AttributeLoad AttributeLoad NameLoad attr attr BoolOpAnd CompareNotEq AttributeLoad NameLoad attr Str UnaryOpNot BoolOpAnd CompareEq Call AttributeLoad NameLoad attr Str BoolOpOr CompareIs AttributeLoad NameLoad attr NameLoad CompareIs AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str For NameStore ListLoad Str Str BinOpMod Str NameLoad body Assign NameStore BinOpMod Str TupleLoad NameLoad NameLoad If UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Expr Str Assign NameStore ListComp BinOpMod Str Call AttributeLoad NameLoad attr NameLoad comprehension NameStore NameLoad Assign NameStore DictComp Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad comprehension NameStore NameLoad For NameStore ListLoad Str Str body Assign NameStore BinOpMod Str TupleLoad NameLoad NameLoad Assign NameStore BinOpMod Str NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Dict Str Str Str NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Assign NameStore AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore IfExp NameLoad AttributeLoad NameLoad attr Str Assign NameStore IfExp NameLoad NameLoad Str Return Dict Str Str Str Str Str Str Str Str Str Str NameLoad NameLoad NameLoad Call AttributeLoad NameLoad attr NameLoad NameLoad Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str For NameStore ListLoad Str Str body Assign NameStore BinOpMod Str TupleLoad SubscriptLoad NameLoad Index Str NameLoad SubscriptLoad NameLoad Index Str NameLoad Assign NameStore BinOpMod Str NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad For NameStore ListLoad Str Str Str Str Str Str body Assign NameStore BinOpMod Str TupleLoad SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str NameLoad Assign NameStore BinOpMod Str NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Expr Str If Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Expr Call NameLoad BinOpAdd BinOpAdd BinOpAdd Str NameLoad Str Str Return With Call NameLoad NameLoad Str NameStore body Expr Call AttributeLoad NameLoad attr Call AttributeLoad Call NameLoad NameLoad attr Call NameLoad NameLoad Expr Call NameLoad BinOpAdd BinOpAdd BinOpAdd Str Str NameLoad Str decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str For NameStore ListLoad Str Str Str body Assign NameStore BinOpMod Str TupleLoad NameLoad NameLoad If Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Assign NameStore Call NameLoad GeneratorExp Num comprehension NameStore Call NameLoad NameLoad If CompareLtE NameLoad Num body Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad Call AttributeLoad Call AttributeLoad Call AttributeLoad NameLoad attr Str Str NameLoad attr attr Str Str attr Str Str Assign NameStore Call AttributeLoad NameLoad attr Str Str NameLoad Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr Str Str NameLoad attr Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str If Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Return AttributeLoad AttributeLoad NameLoad attr attr Return BinOpMod Str AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore ListLoad For NameStore AttributeLoad AttributeLoad NameLoad attr attr body If BoolOpAnd AttributeLoad NameLoad attr Call NameLoad NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad If CompareEq Call NameLoad NameLoad Num body Return SubscriptLoad NameLoad Index Num Return NameLoad decorator_list decorator_list
N/A __future__ print_function N/A os django.db.models.fields SlugField N/A re django.template.loader get_template django.template Context django.utils.six iteritems Baker N/A object N/A N/A 
        Given a dictionary of apps and models, Baker will bake up a bunch of files that will help get your new app up
        and running quickly.
     bake N/A N/A self apps_and_models N/A N/A N/A 
            Iterates a dictionary of apps and models and creates all the necessary files to get up and running quickly.
         N/A N/A app_label models N/A iteritems apps_and_models N/A N/A model_names N/A N/A model __name__ N/A N/A self get_field_names_for_model model N/A model models N/A N/A N/A self create_directories app_label N/A N/A N/A self create_init_files app_label N/A N/A model_names keys models N/A N/A N/A self remove_empty_startapp_files app_label N/A file_name N/A forms admin N/A N/A file_path N/A %s/%s.py N/A app_label file_name N/A template_path N/A django_baker/%s file_name N/A N/A N/A self create_file_from_template file_path template_path N/A model_names model_names N/A model models N/A N/A model_attributes N/A N/A self model_attributes app_label model N/A N/A N/A self create_files_from_templates model_attributes N/A get_field_names_for_model N/A N/A self model N/A N/A N/A 
            Returns fields other than id and uneditable fields (DateTimeField where auto_now or auto_now_add is True)
         N/A N/A N/A field name N/A field N/A N/A model _meta fields N/A N/A N/A field name id N/A N/A N/A N/A N/A field get_internal_type DateTimeField N/A N/A N/A field auto_now True N/A N/A field auto_now_add True N/A create_directories N/A N/A self app_label N/A N/A N/A 
            If not already there, adds a directory for views, urls and templates.
         N/A folder_name N/A views urls N/A templates/%s app_label N/A N/A directory_path N/A %s/%s N/A app_label folder_name N/A N/A N/A N/A N/A os path exists directory_path N/A N/A N/A N/A os makedirs directory_path N/A create_init_files N/A N/A self app_label model_names models N/A N/A N/A 
            If not already there, creates a new init file in views and urls directory.  Init file imports from all
            of the files within the directory.
         N/A model_name_slugs N/A N/A %s_views N/A N/A self camel_to_slug model_name N/A model_name model_names N/A model_names_dict N/A N/A N/A self camel_to_slug N/A model __name__ N/A N/A self camel_to_slug N/A N/A self model_name_plural model N/A model models N/A folder_name N/A views urls N/A N/A file_path N/A %s/%s/__init__.py N/A app_label folder_name N/A template_path N/A django_baker/__init__%s folder_name N/A N/A N/A self create_file_from_template file_path template_path N/A app_label model_name_slugs model_names_dict app_label model_name_slugs model_names_dict N/A model_attributes N/A N/A self app_label model N/A N/A N/A 
            Creates a dictionary of model attributes that will be used in the templates.
         N/A model_name N/A model __name__ N/A model_name_plural N/A N/A self model_name_plural model N/A slug_field N/A N/A self get_unique_slug_field_name model N/A slug_field_name N/A slug_field N/A slug_field name slug N/A lookup_field N/A slug_field slug_field_name pk N/A N/A app_label model model_name model_name_slug model_name_plural model_name_plural_slug model_fields slug_field slug_field_name lookup_field app_label model model_name N/A N/A self camel_to_slug model_name model_name_plural N/A N/A self camel_to_slug model_name_plural N/A N/A self get_field_names_for_model model slug_field slug_field_name lookup_field N/A create_files_from_templates N/A N/A self model_attributes N/A N/A N/A 
            Determines the correct path to put each file and then calls create file method.
         N/A folder_name N/A views urls N/A N/A file_path N/A %s/%s/%s_%s.py N/A N/A model_attributes N/A app_label folder_name N/A model_attributes N/A model_name_slug folder_name N/A template_path N/A django_baker/%s folder_name N/A N/A N/A self create_file_from_template file_path template_path model_attributes N/A file_name N/A base list detail create update delete N/A N/A file_path N/A %s/templates/%s/%s_%s.html N/A N/A model_attributes N/A app_label N/A model_attributes N/A app_label N/A model_attributes N/A model_name_slug file_name N/A template_path N/A django_baker/%s.html file_name N/A N/A N/A self create_file_from_template file_path template_path model_attributes N/A create_file_from_template N/A N/A self file_path template_path context_variables N/A N/A N/A 
            Takes template file and context variables and uses django's render method to create new file.
         N/A N/A N/A N/A os path exists file_path N/A N/A N/A print N/A N/A N/A [91m file_path  already exists.  Skipping. [0m N/A N/A N/A open file_path w new_file N/A N/A N/A N/A new_file write N/A N/A N/A get_template template_path render N/A Context context_variables N/A N/A print N/A N/A N/A [92m successfully baked  file_path [0m N/A remove_empty_startapp_files N/A N/A self app_label N/A N/A N/A 
            Removes 'empty' (less than or equal to 4 lines, as that is what they begin with) views, admin, and tests
            files.
         N/A file_name N/A views admin tests N/A N/A file_path N/A %s/%s.py N/A app_label file_name N/A N/A N/A N/A os path exists file_path N/A N/A num_lines N/A sum N/A 1 N/A line N/A open file_path N/A N/A num_lines 4 N/A N/A N/A N/A os remove file_path N/A camel_to_slug N/A N/A self name N/A N/A N/A 
            Helper method to convert camel case string (PumpernickelBread) to slug string (pumpernickel_bread)
         N/A name N/A N/A N/A N/A N/A N/A N/A N/A re sub ([a-z])([A-Z]) \1 \2 name title replace replace _ N/A s1 N/A N/A re sub (.)([A-Z][a-z]+) \1_\2 name N/A slug N/A N/A N/A N/A re sub ([a-z0-9])([A-Z]) \1_\2 s1 lower N/A slug N/A model_name_plural N/A N/A self model N/A N/A N/A 
            Gets the pluralized version of a model.  Simply adds an 's' to model name if verbose_name_plural isn't set.
         N/A N/A isinstance N/A N/A model _meta verbose_name_plural str N/A N/A N/A N/A model _meta verbose_name_plural N/A N/A %ss N/A model __name__ N/A get_unique_slug_field_name N/A N/A self model N/A N/A N/A 
            Determines if model has exactly 1 SlugField that is unique.  If so, returns it.  Otherwise returns None.
         N/A slug_fields N/A N/A field N/A N/A model _meta fields N/A N/A N/A N/A field unique N/A isinstance field SlugField N/A N/A N/A N/A slug_fields append field N/A N/A N/A len slug_fields 1 N/A N/A N/A slug_fields N/A 0 N/A None N/A N/A