A more robust and feature full django redirect package
Project description
Django Robust Redirects
=======================
A more robust django redirect project.
Supports
- Regular expression redirects
- Ordinary direct redirects
- Partial path redirects
Installation
------------
1. Install the package from pip `pip install django-robust-redirects`
2. Add the following line to your INSTALLED_APPS::
```python
INSTALLED_APPS = (
...
'robustredirects'
)
```
3. Add the following lines to your middleware::
```python
MIDDLEWARE_CLASSES = (
...
'robustredirects.middleware.RedirectMiddleware'
)
```
4. Run syncdb to add the tables to your database
Converting from django.contrib.redirects
----------------------------------------
Robust redirects comes with a management command that will copy all django redirects over into robust redirects, just
run `python manage.py convert_redirects`
Changelog
=========
0.9.2
-----
- Fix typos in the help text.
- Require Django.
- Prepend a slash when doing a partial replacement if the resulting url doesn’t have one. This avoid relative redirections.
- Fix the model admin form and use it in the admin.
=======================
A more robust django redirect project.
Supports
- Regular expression redirects
- Ordinary direct redirects
- Partial path redirects
Installation
------------
1. Install the package from pip `pip install django-robust-redirects`
2. Add the following line to your INSTALLED_APPS::
```python
INSTALLED_APPS = (
...
'robustredirects'
)
```
3. Add the following lines to your middleware::
```python
MIDDLEWARE_CLASSES = (
...
'robustredirects.middleware.RedirectMiddleware'
)
```
4. Run syncdb to add the tables to your database
Converting from django.contrib.redirects
----------------------------------------
Robust redirects comes with a management command that will copy all django redirects over into robust redirects, just
run `python manage.py convert_redirects`
Changelog
=========
0.9.2
-----
- Fix typos in the help text.
- Require Django.
- Prepend a slash when doing a partial replacement if the resulting url doesn’t have one. This avoid relative redirections.
- Fix the model admin form and use it in the admin.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Close
Hashes for django-robust-redirects-0.9.3.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 25b6fba3809f4a11bc38cb8b65a936225b1ed37bdd0c6cf972cf5feef219e9b2 |
|
MD5 | 6a1054ada78ab9bcd867ae41cf9ea8a9 |
|
BLAKE2b-256 | 5bbb85f75e4f70d8b7176533d57e387ae99237c683c71b547c6b5479e5c467c6 |