https://github.com/redsolution/django-import-redirects
https://github.com/redsolution/django-import-redirects
Last synced: 10 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/redsolution/django-import-redirects
- Owner: redsolution
- Created: 2016-07-19T09:02:25.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2024-01-30T07:54:06.000Z (about 2 years ago)
- Last Synced: 2025-03-23T06:41:30.853Z (11 months ago)
- Language: Python
- Size: 40 KB
- Stars: 0
- Watchers: 10
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Django import redirects
Django application for import redirects from csv file
## Requirements
- Django 2.2.*
- Python 3.5
## Installation and basic usage
1. Install package:
``pip install git+git://github.com/shoker174/django-import-redirects``
2. Configure your settings file:
```python
MIDDLEWARE += ['django.contrib.redirects.middleware.RedirectFallbackMiddleware']
INSTALLED_APPS += [
'django.contrib.redirects',
'import_redirects',
]
```
3. Create ``import.csv`` file with two columns, for example:
```
/old-path/;/new-path/
/old-path/sub-path/;/new-path/sub-path/
```
4. Import file in admin app interface