{"id":14972849,"url":"https://github.com/aekanshd/django-permalinks","last_synced_at":"2025-10-26T20:32:08.744Z","repository":{"id":57421219,"uuid":"202752946","full_name":"aekanshd/django-permalinks","owner":"aekanshd","description":"A Django App to make sure old URLs work with new URLs.","archived":false,"fork":false,"pushed_at":"2020-02-28T17:58:50.000Z","size":23,"stargazers_count":3,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-01T00:15:19.992Z","etag":null,"topics":["django","django-admin","django-framework","django-permalinks","permalinks","python3"],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/aekanshd.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-08-16T15:29:29.000Z","updated_at":"2022-01-15T16:56:00.000Z","dependencies_parsed_at":"2022-09-13T06:01:08.376Z","dependency_job_id":null,"html_url":"https://github.com/aekanshd/django-permalinks","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aekanshd%2Fdjango-permalinks","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aekanshd%2Fdjango-permalinks/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aekanshd%2Fdjango-permalinks/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aekanshd%2Fdjango-permalinks/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/aekanshd","download_url":"https://codeload.github.com/aekanshd/django-permalinks/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":238397207,"owners_count":19465134,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["django","django-admin","django-framework","django-permalinks","permalinks","python3"],"created_at":"2024-09-24T13:47:38.215Z","updated_at":"2025-10-26T20:32:03.479Z","avatar_url":"https://github.com/aekanshd.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Django Permalinks\n\nThis 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.\n\n# Free URL Shortner\n\nThis Django app also provides a free URL shortner. In order to use it:\n1. Use the Django Admin to make a new object of Permalinks.\n2. While creating an object, you should see a link which says \"Generate a random string\". Click it.\n3. Click the \"Use this string\" link when it appears.\n4. Enter the long URL in the 'NEW URL' box above.\n\n# Installation\n\nInstall from PyPI:\n```terminal\npip install django-permalinks\n```\n\n# Configurations\n\n1. Add `permalinks` to your list of `INSTALLED_APPS` in settings.py:\n\n    ```python\n    INSTALLED_APPS = [\n        ...\n        'permalinks',\n        ...\n    ]\n    ```\n3. Add the permalinks URLs to `urls.py` of your base app **on the top of the list**:\n     ```python\n    urlpatterns = [\n       url('', include('permalinks.urls')),\n       ...\n    ]\n    ```\n\n4. Add the permalinks middleware to `settings.py` **on the top of the list**:\n\n    ```python\n    MIDDLEWARE = [\n       'permalinks.middleware.main.PermalinksMiddleware',\n       ...\n    ]\n    ```\n\n5. Run `manage.py migrate` to create the required table for the permalinks model.\n6. Create your `permalinks` objects in your Django admin interface.\n7. Test your OLD URLs and their responses by visiting them.\n8. Enjoy a smooth URL migration!","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faekanshd%2Fdjango-permalinks","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faekanshd%2Fdjango-permalinks","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faekanshd%2Fdjango-permalinks/lists"}