{ "info": { "author": "Timur Kamanin", "author_email": "tim@timonweb.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Environment :: Web Environment", "Framework :: Django", "Intended Audience :: Developers", "License :: OSI Approved :: Apache Software License", "Operating System :: OS Independent", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7", "Topic :: Software Development :: Libraries", "Topic :: Utilities" ], "description": "# 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.", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://timonweb.com/oss/django-url-or-relative-url-field/", "keywords": "url field,relative url field", "license": "The MIT License (MIT)", "maintainer": "", "maintainer_email": "", "name": "django-url-or-relative-url-field", "package_url": "https://pypi.org/project/django-url-or-relative-url-field/", "platform": "", "project_url": "https://pypi.org/project/django-url-or-relative-url-field/", "project_urls": { "Homepage": "https://timonweb.com/oss/django-url-or-relative-url-field/" }, "release_url": "https://pypi.org/project/django-url-or-relative-url-field/0.1.2/", "requires_dist": null, "requires_python": "", "summary": "This package provides a Django model field that can store both absolute and relative URLs", "version": "0.1.2" }, "last_serial": 5896041, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "0b5a2a2d4283f36f1e303d679e7a8a47", "sha256": "cbdff73568f9e8411755b8d55ca5daf7daf9cc210ac2ee84d125a26fd02475cd" }, "downloads": -1, "filename": "django-url-or-relative-url-field-0.1.0.tar.gz", "has_sig": false, "md5_digest": "0b5a2a2d4283f36f1e303d679e7a8a47", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3335, "upload_time": "2018-03-13T14:27:06", "url": "https://files.pythonhosted.org/packages/ef/d0/614d961a1d9a563aafd3a859a2ef7444f609f252ea50b5ca1fdb6cefe589/django-url-or-relative-url-field-0.1.0.tar.gz" } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "34935fd792d2a55e6f94aff434cab5f1", "sha256": "4142014ec7e49043eb4bda8b91f5f9d8a658221f8c35af7da71236b23f46b857" }, "downloads": -1, "filename": "django-url-or-relative-url-field-0.1.1.tar.gz", "has_sig": false, "md5_digest": "34935fd792d2a55e6f94aff434cab5f1", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3342, "upload_time": "2018-04-09T16:46:57", "url": "https://files.pythonhosted.org/packages/84/47/0661f94fb7f7773315c1e644e679102c520a6c501d71b9864e16e20622f4/django-url-or-relative-url-field-0.1.1.tar.gz" } ], "0.1.2": [ { "comment_text": "", "digests": { "md5": "7dda84921fff6c6799d4edab4f81c182", "sha256": "b2ccad04150623e765ce9c56a1fb23a9b7fe432f49a8b4f65ca152da7911d75c" }, "downloads": -1, "filename": "django-url-or-relative-url-field-0.1.2.tar.gz", "has_sig": false, "md5_digest": "7dda84921fff6c6799d4edab4f81c182", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3354, "upload_time": "2019-09-27T13:13:09", "url": "https://files.pythonhosted.org/packages/39/4b/a3f695f40a52c7e70b1eced94d87edfb244ee32e0f7460ebef0ed1bd871e/django-url-or-relative-url-field-0.1.2.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "7dda84921fff6c6799d4edab4f81c182", "sha256": "b2ccad04150623e765ce9c56a1fb23a9b7fe432f49a8b4f65ca152da7911d75c" }, "downloads": -1, "filename": "django-url-or-relative-url-field-0.1.2.tar.gz", "has_sig": false, "md5_digest": "7dda84921fff6c6799d4edab4f81c182", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3354, "upload_time": "2019-09-27T13:13:09", "url": "https://files.pythonhosted.org/packages/39/4b/a3f695f40a52c7e70b1eced94d87edfb244ee32e0f7460ebef0ed1bd871e/django-url-or-relative-url-field-0.1.2.tar.gz" } ] }