app/soc/templates/README.templates
changeset 529 7c5ec72cdcf1
parent 54 03e267d67478
equal deleted inserted replaced
528:5e6ae12cc495 529:7c5ec72cdcf1
    21 MODEL/VIEW TEMPLATE NAMING
    21 MODEL/VIEW TEMPLATE NAMING
    22 
    22 
    23 View templates are usually named some_view.html for a corresponding someView()
    23 View templates are usually named some_view.html for a corresponding someView()
    24 function and SomeViewForm form class.  Since SomeView is likely to be a common
    24 function and SomeViewForm form class.  Since SomeView is likely to be a common
    25 View name for multiple Models, Model-specific templates should be placed in
    25 View name for multiple Models, Model-specific templates should be placed in
    26 soc/<model> sub-directories.  For example, the template used by the Profile
    26 soc/<model>/<view> sub-directories.
    27 view for the Person Model belongs in soc/person/profile.html.
       
    28 
    27