Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

django-url-fullpath-redirect

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

django-url-fullpath-redirect

Fork of django-url-tracker with query_string support

  • 0.1.2
  • PyPI
  • Socket score

Maintainers
1

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",
    )
    

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

Keywords

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc