Skip to main content
Help us improve PyPI by participating in user testing. All experience levels needed!

Fork of django-url-tracker with query_string support

Project description

django-url-fullpath-redirect
==================

``django-url-fullpath-redirect`` - простой приложение для редиректов в Django. Форк проекта django-url-tracker.
Поддерживает на данный момент следующие коды ответа:
1. 304
2. 410
Редиректы задаются через админку

Установка
------------

Просто::

pip install django-url-fullpath-redirect

Настройка
-------------

Для запуска добавляем в ``settings.py``:

1. Ставим последним в ``MIDDLEWARE_CLASSES`` наше ``url_tracker.middleware.URLChangePermanentRedirectMiddleware``::

MIDDLEWARE_CLASSES = (
'django.middleware.common.CommonMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
'django.middleware.csrf.CsrfViewMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
'django.contrib.messages.middleware.MessageMiddleware',
'django.contrib.flatpages.middleware.FlatpageFallbackMiddleware',
'url_tracker.middleware.URLChangePermanentRedirectMiddleware',
)

2. И добавляем в ``INSTALLED_APPS`` ::

INSTALLED_APPS = (
"url_tracker",
)



Теперь обновляем базу и можем задавать редиректы через админку.
Профит.

Project details


Release history Release notifications

This version
History Node

0.1.2

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
django-url-fullpath-redirect-0.1.2.tar.gz (10.2 kB) Copy SHA256 hash SHA256 Source None Dec 15, 2012

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page