GithubHelp home page GithubHelp logo

joshyu / aldryn-redirects Goto Github PK

View Code? Open in Web Editor NEW

This project forked from fidelityinternational/aldryn-redirects

1.0 0.0 0.0 104 KB

A modified version of django's django.contrib.redirects app that supports language dependant target URLs, using django-hvad

Home Page: http://www.aldryn.com/en/marketplace/aldryn-redirects/

License: Other

Python 93.77% Makefile 0.33% HTML 5.90%

aldryn-redirects's Introduction

** This app is the Fidelity fork of the Divio app aldryn-redirects **

Divio dropped support for the original app, this is a fork named aldryn-redirects-fil, which diverges from the original to bring in django 3.2 support, as well as other FIL specific functionality. To simplify the releases, the app version has been set to 1.0.0 for the release after the divergence.

Aldryn Redirects

This is a modified version of Django's django.contrib.redirects app that supports language-dependent target URLs, using django-parler.

This is useful for cases in which another middleware strips the language prefix from the URL, like django CMS. It allows to define different urls to redirect to, depending on the user's language.

Installation

Aldryn Platform Users

To install the addon on Aldryn, all you need to do is follow this installation link on the Aldryn Marketplace and follow the instructions.

Manually you can:

  1. Choose a site you want to install the Addon to from the dashboard.
  2. Go to Apps > Install App
  3. Click Install next to the Aldryn Redirects app.
  4. Redeploy the site.

Manual Installation

`bash pip install aldryn-redirects`

Follow the setup instructions for django-parler.

`python # settings.py INSTALLED_APPS += [ 'parler', 'aldryn_redirects' ] # add the middleware somewhere near the top of MIDDLEWARE MIDDLEWARE.insert( 0, 'aldryn_redirects.middleware.RedirectFallbackMiddleware')`

aldryn-redirects's People

Contributors

adam-murray avatar chive avatar czpython avatar filwaitman avatar finalangel avatar freemanpancake avatar michaeljcollinsuk avatar stefanfoulis avatar vipulnarang95 avatar

Stargazers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.