django-redirect-plus-0.0.1
توضیحات
Django's built-in redirect app with some extras.
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | django-redirect-plus-0.0.1 |
| نام | django-redirect-plus |
| نسخه کتابخانه | 0.0.1 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | arteria GmbH |
| ایمیل نویسنده | admin@arteria.ch |
| آدرس صفحه اصلی | https://github.com/arteria/django-redirect-plus |
| آدرس اینترنتی | https://pypi.org/project/django-redirect-plus/ |
| مجوز | The MIT License |
Django's built-in redirect app with some extras added.
============
Based on Django's built-in redirect app with some extras added.
Starting point for this app was https://github.com/django/django/tree/master/django/contrib/redirects. Now with these extra features:
* Simple hit counter on each redirect rule
Installation
------------
To get the latest stable release from PyPi
pip install django-redirect-plus
To get the latest commit from GitHub
pip install -e git+git://github.com/arteria/django-redirect-plus.git#egg=redirect_plus
Add ``redirect_plus`` to your ``INSTALLED_APPS``
INSTALLED_APPS = (
...,
'django.contrib.redirects',
'redirect_plus',
)
Update your ``MIDDLEWARE_CLASSES`` in your project settings
MIDDLEWARE_CLASSES = (
...
# 'django.contrib.redirects.middleware.RedirectFallbackMiddleware' , # <= comment this
'redirect_plus.middleware.RedirectFallbackMiddleware', # <= replace by /add this middleware
...
)
Don't forget to sync your database
./manage.py syncdb
نحوه نصب
نصب پکیج whl django-redirect-plus-0.0.1:
pip install django-redirect-plus-0.0.1.whl
نصب پکیج tar.gz django-redirect-plus-0.0.1:
pip install django-redirect-plus-0.0.1.tar.gz