{"id":15354575,"url":"https://github.com/timonweb/django-url-or-relative-url-field","last_synced_at":"2025-09-03T17:34:53.737Z","repository":{"id":30522379,"uuid":"125063646","full_name":"timonweb/django-url-or-relative-url-field","owner":"timonweb","description":"A Django model field that supports both absolute and relative URLs.","archived":false,"fork":false,"pushed_at":"2024-01-16T21:12:29.000Z","size":9,"stargazers_count":10,"open_issues_count":2,"forks_count":5,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-15T06:12:20.240Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","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/timonweb.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-03-13T14:23:22.000Z","updated_at":"2024-05-21T18:12:18.000Z","dependencies_parsed_at":"2024-06-21T05:58:15.983Z","dependency_job_id":null,"html_url":"https://github.com/timonweb/django-url-or-relative-url-field","commit_stats":{"total_commits":10,"total_committers":4,"mean_commits":2.5,"dds":"0.30000000000000004","last_synced_commit":"b5cf51af94087b7195fe5fd334a6f7ae431eb998"},"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/timonweb%2Fdjango-url-or-relative-url-field","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/timonweb%2Fdjango-url-or-relative-url-field/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/timonweb%2Fdjango-url-or-relative-url-field/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/timonweb%2Fdjango-url-or-relative-url-field/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/timonweb","download_url":"https://codeload.github.com/timonweb/django-url-or-relative-url-field/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249016638,"owners_count":21198833,"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":[],"created_at":"2024-10-01T12:19:52.616Z","updated_at":"2025-04-15T06:12:25.114Z","avatar_url":"https://github.com/timonweb.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Django URL or Relative URL Field\n\nThis package extends default Django URLField to support relative URLs.\n\n\n## Installation\n\n1. Install the python package django-url-or-relative-url-field from pip:\n\n    ``pip install django-url-or-relative-url-field``\n\n    Alternatively, you can install download or clone this repo and call ``pip install -e .``.\n  \n2. Add to INSTALLED_APPS in your **settings.py**:\n\n    `'url_or_relative_url_field',`\n  \n## Usage  \n  \nAdd field to the model:\n\n```python\nfrom django.db import models\nfrom url_or_relative_url_field.fields import URLOrRelativeURLField\n\nclass Redirect(models.Model):\n   url = URLOrRelativeURLField()\n```\n\nNow your model will accept both absolute and relative URLs into the ``url`` field.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftimonweb%2Fdjango-url-or-relative-url-field","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftimonweb%2Fdjango-url-or-relative-url-field","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftimonweb%2Fdjango-url-or-relative-url-field/lists"}