Changeset 2785
- Timestamp:
- 04/28/06 20:59:25 (2 years ago)
- Files:
-
- django/branches/magic-removal/docs/redirects.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
django/branches/magic-removal/docs/redirects.txt
r2608 r2785 9 9 ============ 10 10 11 To install the redirects app, follow these twosteps:11 To install the redirects app, follow these steps: 12 12 13 1. Add `` "django.contrib.redirects"`` to your INSTALLED_APPS_ setting.14 2. Add `` "django.contrib.redirects.middleware.RedirectFallbackMiddleware"``13 1. Add ``'django.contrib.redirects'`` to your INSTALLED_APPS_ setting. 14 2. Add ``'django.contrib.redirects.middleware.RedirectFallbackMiddleware'`` 15 15 to your MIDDLEWARE_CLASSES_ setting. 16 3. Run the command `` django-admin.py install redirects``.16 3. Run the command ``manage.py syncdb``. 17 17 18 18 .. _INSTALLED_APPS: http://www.djangoproject.com/documentation/settings/#installed-apps … … 22 22 ============ 23 23 24 ``django-admin.py install redirects`` creates a ``django_redirect`` table in 25 your database. This is a simple lookup table with ``site_id``, ``old_path`` and 26 ``new_path`` fields. 24 ``manage.py syncdb`` creates a ``django_redirect`` table in your database. This 25 is a simple lookup table with ``site_id``, ``old_path`` and ``new_path`` fields. 27 26 28 27 The ``RedirectFallbackMiddleware`` does all of the work. Each time any Django
