{ "info": { "author": "Igor `idle sign` Starikov", "author_email": "idlesign@yandex.ru", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "License :: OSI Approved :: BSD License", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5" ], "description": "django-xross\n============\nhttps://github.com/idlesign/django-xross\n\n.. image:: https://img.shields.io/pypi/v/django-xross.svg\n :target: https://pypi.python.org/pypi/django-xross\n\n.. image:: https://img.shields.io/pypi/dm/django-xross.svg\n :target: https://pypi.python.org/pypi/django-xross\n\n.. image:: https://img.shields.io/pypi/l/django-xross.svg\n :target: https://pypi.python.org/pypi/django-xross\n\n.. image:: https://img.shields.io/coveralls/idlesign/django-xross/master.svg\n :target: https://coveralls.io/r/idlesign/django-xross\n\n.. image:: https://img.shields.io/travis/idlesign/django-xross/master.svg\n :target: https://travis-ci.org/idlesign/django-xross\n\n.. image:: https://landscape.io/github/idlesign/django-xross/master/landscape.svg?style=flat\n :target: https://landscape.io/github/idlesign/django-xross/master\n\n\nDescription\n-----------\n\n*Reusable application for Django nicely bridging client and server sides.*\n\nStreamline you server and client interaction using some declarative techniques in your HTML,\nand a couple of xross functions in your views.\n\n\nSomewhere in your `views.py`:\n\n.. code-block:: python\n\n from django.shortcuts import render\n from xross.toolbox import xross_view, xross_listener # That's all we need from xross.\n\n\n def list_news(request):\n \"\"\"This function will be used by xross to load news using AJAX.\"\"\"\n news = ... # Here we fetch some news from DB.\n return render(request, 'mytemplates/sub_news.html', {'news': news})\n\n\n @xross_view(list_news) # Decorate your view - instruct xross to use `list_news` when needed.\n def index_page(request):\n \"\"\"This is our view to streamline.\"\"\"\n\n xross_listener() # xross will handle AJAX calls from that moment.\n\n return render(request, 'mytemplates/index.html')\n\n\n\nNow to your `mytemplates/index.html`:\n\n.. code-block:: html\n\n \n \n \n \n \n\n \n \n \n \n \n
\n \n
\n \n \n\n\nAt last `mytemplates/sub_news.html` (nothing special):\n\n.. code-block:: html\n\n {% for item in news %}\n
\n
{{ item.title }}
\n
{{ item.text }}
\n
\n {% endfor %}\n\n\nThat's not all, not at all. Read the docs!\n\n\n\nDocumentation\n-------------\n\nhttp://django-xross.readthedocs.org/", "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/idlesign/django-xross", "keywords": null, "license": "BSD 3-Clause License", "maintainer": null, "maintainer_email": null, "name": "django-xross", "package_url": "https://pypi.org/project/django-xross/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/django-xross/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/idlesign/django-xross" }, "release_url": "https://pypi.org/project/django-xross/0.6.0/", "requires_dist": null, "requires_python": null, "summary": "Reusable application for Django nicely bridging client and server sides.", "version": "0.6.0" }, "last_serial": 1968191, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "e9863770eaa84628bbbdc49c2b5e548c", "sha256": "b680d66385dc3f09d208ddcf5a0e16a88bde23940cb1a7e60815eca5481a6a14" }, "downloads": -1, "filename": "django-xross-0.1.0.tar.gz", "has_sig": false, "md5_digest": "e9863770eaa84628bbbdc49c2b5e548c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 15347, "upload_time": "2014-06-24T07:26:23", "url": "https://files.pythonhosted.org/packages/1a/b2/ac156ac23b85acedefcdd78ed0345ef719d3e195cba14df1f914ebc660dc/django-xross-0.1.0.tar.gz" } ], "0.2.0": [ { "comment_text": "", "digests": { "md5": "0292901008ef91b3fbb0300cf36cfe02", "sha256": "6dfcc98c215feb8d216dcaef5cc58047af9f8fbb04f0ef15c60f342cc68d1215" }, "downloads": -1, "filename": "django-xross-0.2.0.tar.gz", "has_sig": false, "md5_digest": "0292901008ef91b3fbb0300cf36cfe02", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 18157, "upload_time": "2014-06-27T03:32:45", "url": "https://files.pythonhosted.org/packages/95/94/a2adc03dde403f0a0ae65ef2cdb7c110d3555adc614de7e754254fc37267/django-xross-0.2.0.tar.gz" } ], "0.3.0": [ { "comment_text": "", "digests": { "md5": "4fd2fdde823c6931721c33c88cb83bb7", "sha256": "64458898a009f740313afb2a7143916d7ee3e04070211635208868318f9a95e8" }, "downloads": -1, "filename": "django-xross-0.3.0.tar.gz", "has_sig": false, "md5_digest": "4fd2fdde823c6931721c33c88cb83bb7", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 18990, "upload_time": "2014-07-30T16:39:09", "url": "https://files.pythonhosted.org/packages/65/9d/6bccf37f067a0d6cb0711eef55389506a006b63eacd8014c7254853c004a/django-xross-0.3.0.tar.gz" } ], "0.4.0": [ { "comment_text": "", "digests": { "md5": "fbda09273242de3c734d86eb2eac8a48", "sha256": "96c87a23d62b59e64bf714b0c2d822c5dba08ed92d5cba081197943400b5e0fc" }, "downloads": -1, "filename": "django-xross-0.4.0.tar.gz", "has_sig": false, "md5_digest": "fbda09273242de3c734d86eb2eac8a48", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 19358, "upload_time": "2015-03-28T07:30:11", "url": "https://files.pythonhosted.org/packages/7b/5b/b4114203cfdfe45f479220afc2990eacd13653e19a360c5181f9f29e4d61/django-xross-0.4.0.tar.gz" } ], "0.5.0": [], "0.5.1": [ { "comment_text": "", "digests": { "md5": "238f775863b9fcffc97889c6e8205166", "sha256": "fbba7a0b895c2cb2b617750cc9c13ff39cfb391099aa6240086a0fce33eb3028" }, "downloads": -1, "filename": "django-xross-0.5.1.tar.gz", "has_sig": false, "md5_digest": "238f775863b9fcffc97889c6e8205166", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 19657, "upload_time": "2015-12-23T14:56:32", "url": "https://files.pythonhosted.org/packages/13/73/c87dfeb629167ccbceb63d7e09e31ea5705ef23d85ac092703d6802035a9/django-xross-0.5.1.tar.gz" } ], "0.6.0": [ { "comment_text": "", "digests": { "md5": "ae3e2fe4c20b066b68aec388b7833b30", "sha256": "9bf8d05be7552a7095da29058662b20a5d37613e170244b8cb6544bdfe613a18" }, "downloads": -1, "filename": "django-xross-0.6.0.tar.gz", "has_sig": false, "md5_digest": "ae3e2fe4c20b066b68aec388b7833b30", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 22184, "upload_time": "2016-02-21T18:35:27", "url": "https://files.pythonhosted.org/packages/9b/a1/c96345f75a7fcb279a619ddfb11fde247029b63fc11da158973c93531984/django-xross-0.6.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "ae3e2fe4c20b066b68aec388b7833b30", "sha256": "9bf8d05be7552a7095da29058662b20a5d37613e170244b8cb6544bdfe613a18" }, "downloads": -1, "filename": "django-xross-0.6.0.tar.gz", "has_sig": false, "md5_digest": "ae3e2fe4c20b066b68aec388b7833b30", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 22184, "upload_time": "2016-02-21T18:35:27", "url": "https://files.pythonhosted.org/packages/9b/a1/c96345f75a7fcb279a619ddfb11fde247029b63fc11da158973c93531984/django-xross-0.6.0.tar.gz" } ] }