Skip to content
This repository
Newer
Older
100644 42 lines (31 sloc) 1.185 kb
a1940dee » MegaMark16
2011-04-13 Initial commit
1 django-cms-redirects
2 =================
74207dec » andrewschoen
2011-04-13 documentation changes
3 A django app that lets you store simple redirects in a database and handles the redirecting for you. Integrated with Django CMS to allow you to link directly to a page object. Based off django.contrib.redirects.
a1940dee » MegaMark16
2011-04-13 Initial commit
4
5 Dependancies
6 ============
7
8 - django
9 - django-cms
10
11 Getting Started
12 =============
13
14 To get started simply install using ``pip``:
15 ::
16 pip install django-cms-redirects
17
c6833a37 » Andrew Schoen
2011-04-13 readme changes, removed migrations, changed admin list view
18 Add ``cms_redirects`` to your installed apps and ``syncdb``.
a1940dee » MegaMark16
2011-04-13 Initial commit
19
20 Your installed apps should look something like this:
21 ::
22 INSTALLED_APPS = (
23 'django.contrib.auth',
24 'django.contrib.contenttypes',
25 'django.contrib.sessions',
26 'django.contrib.sites',
27 'django.contrib.messages',
28 'django.contrib.admin',
29 'cms',
30 'cms_redirects',
31 )
32
33 Finally, add 'cms_redirects.middleware.RedirectFallbackMiddleware' to your MIDDLEWARE_CLASSES setting.
34
50c430a1 » andrewschoen
2011-04-13 updated docs to explain usage and the http status codes used
35 Usage
36 =============
37
38 All usage is done through the admin.
39
40 Providing a ``redirect from`` value for the source and either a ``redirect to`` or a ``page`` for the destination will result in a 301 redirect
41
42 Providing a ``redirect from`` value for the source and NO destination will result in a 410
43
a1940dee » MegaMark16
2011-04-13 Initial commit
44
45
Something went wrong with that request. Please try again.