Changes between Version 4 and Version 5 of MagicRemovalCheatSheet


Ignore:
Timestamp:
May 11, 2006, 11:13:29 PM (18 years ago)
Author:
eugene@…
Comment:

added template tags

Legend:

Unmodified
Added
Removed
Modified
  • MagicRemovalCheatSheet

    v4 v5  
    6060from django.conf import settings
    6161}}}
     62 1. Update your code to reflect model changes you did in the Models section above.
    6263 1. [wiki:RemovingTheMagic#Includetemplateextensionexplicitly Include template extensions explicitly].
    6364 1. [wiki:RemovingTheMagic#Descriptorfields Convert to new Database API]. ''Warning: usually this is the most time-consuming step. Be careful!''
     
    7576 1. Template tags {{{extends}}} and {{{include}}} [wiki:RemovingTheMagic#Includetemplateextensionexplicitly should include template extensions explicitly].
    7677 1. [wiki:RemovingTheMagic#Changedtemplatenamesingenericviews Change template names for generic views]: remove pluralization of model names.
    77  1. If your template uses Django's methods defined on its parameters, try to move this code to corresponding views, if possible. Otherwise apply changes outlined in Views section above.
     78 1. If your template uses Django's methods defined on its parameters, try to move this code to corresponding views, if possible. Otherwise apply changes outlined in the Views section above.
    7879
    7980== Template tags ==
    80 == Settings and URLs ==
     81
     82 1. [wiki:RemovingTheMagic#Namespacesimplification Change import statements] to reflect the namespace simplification:
     83   * {{{django.core.template}}} => {{{django.template}}}
     84   * {{{django.core.extensions}}} => {{{django.shortcuts}}}
     85   * '''renamed:''' {{{django.core.extensions.DjangoContext}}} => {{{django.template.RequestContext}}}
     86 1. If your template tag uses external templates, [wiki:RemovingTheMagic#Includetemplateextensionexplicitly include template extensions explicitly].
     87 1. [wiki:RemovingTheMagic#RemovedSilentVariableFailureexception SilentVariableFailure exception was removed]: use {{{silent_variable_failure}}} attribute instead.
     88 1. Update your code to reflect model changes you did in the Models section above, if applicable.
     89 1. If your template tag implements a high-level view-like functionality, apply changes outlined in the Views section above.
     90
     91== URLs and settings ==
    8192
    8293== Post-conversion ==
Back to Top