Django application for import redirects from csv file
- Django 2.2.*
- Python 3.5
-
Install package:
pip install git+git://github.com/shoker174/django-import-redirects
-
Configure your settings file:
MIDDLEWARE += ['django.contrib.redirects.middleware.RedirectFallbackMiddleware'] INSTALLED_APPS += [ 'django.contrib.redirects', 'import_redirects', ]
-
Create
import.csv
file with two columns, for example:/old-path/;/new-path/ /old-path/sub-path/;/new-path/sub-path/
-
Import file in admin app interface