A Django App to make sure old URLs work with new URLs.
This Django App acts as an internal redirector. Most likely use cases are when you have changed your URL scheme for a few pages, but your visitors still have the Old URL - this app can help you redirect the old scheme to the new one.
Free URL Shortner
This Django app also provides a free URL shortner. In order to use it:
- Use the Django Admin to make a new object of Permalinks.
- While creating an object, you should see a link which says "Generate a random string". Click it.
- Click the "Use this string" link when it appears.
- Enter the long URL in the 'NEW URL' box above.
Install from PyPI:
pip install django-permalinks
permalinksto your list of
INSTALLED_APPS = [ ... 'permalinks', ... ]
Add the permalinks URLs to
urls.pyof your base app on the top of the list:
urlpatterns = [ url('', include('permalinks.urls')), ... ]
Add the permalinks middleware to
settings.pyon the top of the list:
MIDDLEWARE = [ 'permalinks.middleware.main.PermalinksMiddleware', ... ]
manage.py migrateto create the required table for the permalinks model.
permalinksobjects in your Django admin interface.
Test your OLD URLs and their responses by visiting them.
Enjoy a smooth URL migration!
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Hashes for django_permalinks-0.1.4-py3-none-any.whl