Django Permalinks
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.
Installation
Install from PyPI:
pip install django-permalinks
Configurations
-
Add
permalinksto your list ofINSTALLED_APPSin settings.py: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', ... ]
-
Run
manage.py migrateto create the required table for the permalinks model. -
Create your
permalinksobjects in your Django admin interface. -
Test your OLD URLs and their responses by visiting them.
-
Enjoy a smooth URL migration!
Metadata
Release files for django-permalinks 0.1.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| django-permalinks-0.1.4.tar.gz | 4.5 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| django_permalinks-0.1.4-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 13.8 kB
Release files / django-permalinks-0.1.4.tar.gz
| Download URL | django-permalinks-0.1.4.tar.gz |
|---|---|
| Size | 4.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
95cbf78d9e99f0d8f7aca2935a1cfc32a31fc7cd1278d292055a7ff3676b5267
|
|
BLAKE2b-256 checksum How to use checksums |
40308ebf73955768a02729e6e139cdda2c9592fad72f233726c0f52f6eff12b0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/39.1.0 requests-toolbelt/0.9.1 tqdm/4.33.0 CPython/3.7.0
|
Release files / django_permalinks-0.1.4-py3-none-any.whl
| Download URL | django_permalinks-0.1.4-py3-none-any.whl |
|---|---|
| Size | 9.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
968a76ed416538617c46ad427b97fee76daa79b1f0e37ee0623db452f8b97609
|
|
BLAKE2b-256 checksum How to use checksums |
7a67a4346f93070ef687f723f45cebcec0f7e8c10f22cb07b7829f5c71dcbdcb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/39.1.0 requests-toolbelt/0.9.1 tqdm/4.33.0 CPython/3.7.0
|