| 94 | 1. Update {{{urls.py}}}: |
| 95 | 1. Admin URLConf was [wiki:RemovingTheMagic#MovedadminURLconftoshortenitspath relocated: |
| 96 | * {{{django.contrib.admin.urls.admin}}} => {{{django.contrib.admin.urls}}} |
| 97 | 1. [wiki:RemovingTheMagic#Changedtheparametersyoupasstogenericviews Change the parameters you pass to generic views]: remove {{{app_label}}} and {{{model_name}}}, add {{{queryset}}}. |
| 98 | 1. Update {{{settings.py}}}: |
| 99 | 1. Update {{{TEMPLATE_LOADERS}}} to reflect [wiki:RemovingTheMagic#Namespacesimplification Namespace simplification]: remove {{{core}} from their names. |
| 100 | 1. Update {{{INSTALLED_APPS}}} to reflect [wiki:RemovingTheMagic#Namespacesimplification Namespace simplification]: |
| 101 | * {{{django.models.auth}}} => {{{django.contrib.auth.models}}} |
| 102 | * {{{django.models.core.sites}}} => {{{django.contrib.sites.models}}} |
| 103 | * {{{django.models.core.contenttypes}}} => {{{django.contrib.contenttypes.models}}} |
| 104 | 1. Update {{{INSTALLED_APPS}}} to reflect changes you made in the Models section: |
| 105 | * {{{yourproject.apps.yourapp}}} => {{{yourproject.yourapp}}} |
| 106 | 1. Add additional applications to your {{{INSTALLED_APPS}}} to satisfy dependencies: |
| 107 | * Before {{{django.contrib.admin}}} add {{{django.contrib.auth}}} and {{{django.contrib.contenttypes}}}. |
| 108 | * Before {{{django.contrib.flatpages}}} and/or {{{django.contrib.redirects}}} add {{{django.contrib.sites}}}. |
| 109 | 1. The {{{packages}}} module [wiki:RemovingTheMagic#Thepackagesmoduleisnomore has been removed]. |
| 110 | 1. Update {{{MIDDLEWARE_CLASSES}}} to reflect [wiki:RemovingTheMagic#Namespacesimplification Namespace simplification]: |
| 111 | * {{{django.middleware.sessions.SessionMiddleware}}} => {{{django.contrib.sessions.middleware.SessionMiddleware}}} |
| 112 | 1. If you rely on {{{request.user}}} [wiki:RemovingTheMagic#request.userisnowsetviamiddleware anywhere in your code], modify {{{MIDDLEWARE_CLASSES}}}: |
| 113 | * Add {{{django.contrib.auth.middleware.AuthenticationMiddleware}}} anywhere after {{{django.contrib.sessions.middleware.SessionMiddleware}}}. |
| 114 | |