{ "info": { "author": "Vitaly Olevinsky", "author_email": "olevinsky.v.s@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Framework :: Django", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 2.6", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3.2", "Programming Language :: Python :: 3.3" ], "description": "django-future-url\n=================\n\n.. image:: https://travis-ci.org/futurecolors/django-future-url.png?branch=master\n :target: https://travis-ci.org/futurecolors/django-future-url\n\nMigration tool for old style \u201curl\u201d tags in Django 1.3 & 1.4.\nSupport for Django 1.5 in next version.\n`\u201cIn Django 1.5, the behavior of the url template tag will change\u201d`_\n\nIf you use old style url tags in django 1.4 you will see that:\n\u201cDeprecationWarning: The syntax for the url template tag is changing.\nLoad the ``url`` tag from the ``future`` tag library to start using the\nnew behavior.\u201d\n\nThe new library also drops support for the comma syntax\nfor separating arguments to the url template tag.\n\nIn Django 1.5, the old behavior will be replaced with the behavior\nprovided by the future tag library. Existing templates be migrated to use the new syntax.\n\n.. _\u201cIn Django 1.5, the behavior of the url template tag will change\u201d: https://docs.djangoproject.com/en/1.4/ref/templates/builtins/#url\n\nHow it works\n------------\n\n- Finds all ``\\*.html``, ``\\*.txt`` files.\n- Replaces all old style \u201curl\u201d tags.\n- Inserts ``{% load url from future %}`` when it's needed.\n\nInstallation\n------------\n::\n\n $ pip install django-future-url\n\nUsage\n-----\n::\n\n $ cd ~/projects/my_django_14_project/\n $ future_url\n\nIt will show needed midification for all templates in directory\n\u201c~/projects/my\\_django\\_14\\_project/\u201d and subdirectories.::\n\n $ future_url --write\n\nIt will modernize all your templates in place (see above).\n\nOptions\n~~~~~~~\n\nYou can use ``future_url --help`` for help.\n\nOnly shows changes to be made without actually modifying files::\n\n $ future_url\n\n\nExample\n-------\n::\n\n $ cat ./template1.html\n\n {% url path.to.view arg arg2 %}\n {% url path.to.view arg arg2 %}\n {%url myapp:view-name %}\n {% url path.to.view as the_url%}\n {% url path.to.view arg arg2 as the_url %}\n {%url app_views.client client.id%}\n\n::\n\n $ future_url --write\n\n $ cat ./template1.html\n\n {% load url from future %}\n {% url 'path.to.view' arg arg2 %}\n {% url 'path.to.view' arg arg2 %}\n {%url 'myapp:view-name' %}\n {% url 'path.to.view' as the_url%}\n {% url 'path.to.view' arg arg2 as the_url %}\n\n\nTests\n-----\n\nInstall ``python setup.py test`` and ``cram django_future_url/test/cram``", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/futurecolors/django-future-url/", "keywords": null, "license": "MIT", "maintainer": null, "maintainer_email": null, "name": "django-future-url", "package_url": "https://pypi.org/project/django-future-url/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/django-future-url/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/futurecolors/django-future-url/" }, "release_url": "https://pypi.org/project/django-future-url/0.2.2/", "requires_dist": null, "requires_python": null, "summary": "Migration tool for django 1.4, fixes url template tag deprecation warnings.", "version": "0.2.2" }, "last_serial": 819204, "releases": { "0.2": [ { "comment_text": "", "digests": { "md5": "d6ee8633d77abadf16cc5126f9d36d11", "sha256": "9061207f066ff31c89f4c6c04c19667343168be0917a37b45b5786de7e9f065f" }, "downloads": -1, "filename": "django-future-url-0.2.tar.gz", "has_sig": false, "md5_digest": "d6ee8633d77abadf16cc5126f9d36d11", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4914, "upload_time": "2013-01-28T15:20:33", "url": "https://files.pythonhosted.org/packages/37/cc/bed98140ecc8d28f8f51196d83b226623af7da464a26386e56ee578c6309/django-future-url-0.2.tar.gz" } ], "0.2.1": [ { "comment_text": "", "digests": { "md5": "44dbaaa538666421d83b47f96392a04c", "sha256": "735fd61b67ab9a599bf91a44067cc0d95cbce4eb383f74870769ca344f217e99" }, "downloads": -1, "filename": "django-future-url-0.2.1.zip", "has_sig": false, "md5_digest": "44dbaaa538666421d83b47f96392a04c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 10471, "upload_time": "2013-01-28T18:57:36", "url": "https://files.pythonhosted.org/packages/17/19/13a9e64dc4cb94cbb09fcb22249821b624b36536f9cedf4d283933f039e8/django-future-url-0.2.1.zip" } ], "0.2.2": [ { "comment_text": "", "digests": { "md5": "efb947b4049c7f86935d76171a511ea4", "sha256": "fce9cde2da170284cf7f540eb20db857ceb5adbf2dff61ee77974b42fb526f54" }, "downloads": -1, "filename": "django-future-url-0.2.2.zip", "has_sig": false, "md5_digest": "efb947b4049c7f86935d76171a511ea4", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 10531, "upload_time": "2013-01-28T19:07:09", "url": "https://files.pythonhosted.org/packages/4b/51/20cd8e090d82bf38671643545ec744203b73029631b42653e4e51c64c5e8/django-future-url-0.2.2.zip" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "efb947b4049c7f86935d76171a511ea4", "sha256": "fce9cde2da170284cf7f540eb20db857ceb5adbf2dff61ee77974b42fb526f54" }, "downloads": -1, "filename": "django-future-url-0.2.2.zip", "has_sig": false, "md5_digest": "efb947b4049c7f86935d76171a511ea4", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 10531, "upload_time": "2013-01-28T19:07:09", "url": "https://files.pythonhosted.org/packages/4b/51/20cd8e090d82bf38671643545ec744203b73029631b42653e4e51c64c5e8/django-future-url-0.2.2.zip" } ] }