{ "info": { "author": "Itay Zandbank", "author_email": "zmbq@platonix.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "Environment :: Web Environment", "Framework :: Django", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.7", "Topic :: Internet :: WWW/HTTP", "Topic :: Internet :: WWW/HTTP :: Dynamic Content" ], "description": "djqgrid\n=======\n\n``djqgrid`` is a Django wrapper for jqGrid.\n\n``djqgrid`` lets you define grids in a Django-familiar way, while taking care of most of the mundane Python-JavaScript bridge for you.\n\nYou can find the documents at ReadTheDocs_.\n\n.. _ReadTheDocs: http://djqgrid.readthedocs.org\n\nQuick Example\n-------------\n\nAdd ``djqgrid`` to your project\n^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n\n1. Install with ``pip install djqgrid``\n2. Add ``djqgrid`` to your ``INSTALLED_APPS``.\n3. Reference the ``jqGrid`` and ``jQueryUI`` JavaScript and CSS files \n4. Reference the script at ``{% static \"js/djqgrid_utils.js\" %}``\n5. Add the ``djqgrid`` URLs to ``urls.py``:\n ::\n \n urlpatterns += patterns('', url(r^'grid_json/', include (djqgrid.urls))\n\nDefine your model\n^^^^^^^^^^^^^^^^^\n::\n\n class MyModel(models.Model):\n name = models.CharField(max_length=40)\n desc = models.CharField(max_length=100)\n url = models.URLField()\n height = models.IntField()\n\nDefine your grid\n^^^^^^^^^^^^^^^^ \n::\n\n class MyGrid(Grid):\n model = MyModel \n\n name = TextColumn(title='Name', model_path='name')\n height = TextColumn(title='Height', model_path='height', align='right')\n desc = LinkColumn(title='Description', model_path='desc', url_builder=lambda m: m.url)\n\nWhat we have here is a grid associated with ``MyModel`` objects - each grid row represents one object. The grid has three columns:\n\n1. Name - a basic column containing ``model.name``\n2. Height - containing ``model.height``, but right aligned\n3. Description - containing a link - its text will be ``model.desc`` and the URL will be ``model.url``\n \nOne thing to note is ``align='right'`` - this property is passed directly to jqGrid in the column's `colModel`. Any property can be passed to jqGrid this way. For example ``TextColumn(title=..., model_path=..., editable=true)`` creates an editable column.\n\nAdd the grid to your view and template\n^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n\nThe view: ::\n\n define myview(request):\n grid = MyGrid()\n return render(request, 'my_template.html', { grid: grid })\n \n\nThe template: ::\n\n {% load djqgrid %}\n \n
\n {% jqgrid grid %}\n
\n\n\nNow run the view. You should see a very nice grid that supports paging and sorting.", "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/zmbq/djqgrid/", "keywords": "django jqgrid client-side grid", "license": "MIT license", "maintainer": null, "maintainer_email": null, "name": "djqgrid", "package_url": "https://pypi.org/project/djqgrid/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/djqgrid/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/zmbq/djqgrid/" }, "release_url": "https://pypi.org/project/djqgrid/0.2.4/", "requires_dist": null, "requires_python": null, "summary": "A Django wrapper for jqGrid", "version": "0.2.4" }, "last_serial": 1621617, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "7b46281ea763774eefe3afa00e2aaae4", "sha256": "b35063ed8474ebdfa9a290e07087ecbc13de703af4277d3fc556820003ec6328" }, "downloads": -1, "filename": "djqgrid-0.1.tar.gz", "has_sig": false, "md5_digest": "7b46281ea763774eefe3afa00e2aaae4", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7567, "upload_time": "2014-04-14T10:44:40", "url": "https://files.pythonhosted.org/packages/f9/ca/7a3945360e3824cde88284a52db7a6bbf6efd102ec2e09f33120e957ee94/djqgrid-0.1.tar.gz" } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "6692943e920b8c227a8ba57ac3b8def1", "sha256": "feaa9353a5b618191a910f96673c300c1471242bd796c08acd3e6bf31c28a411" }, "downloads": -1, "filename": "djqgrid-0.1.1.tar.gz", "has_sig": false, "md5_digest": "6692943e920b8c227a8ba57ac3b8def1", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 11832, "upload_time": "2014-04-15T21:17:27", "url": "https://files.pythonhosted.org/packages/6f/68/72637f57993535c0b03c5018075cf1311d06ddb200e244ad0891e3dfca90/djqgrid-0.1.1.tar.gz" } ], "0.1.2": [ { "comment_text": "", "digests": { "md5": "995bdb309ac83ca9af31c1e6669a1b79", "sha256": "b1135992ad97da0a1f0d5c626c5bc62a281efe75be1326fc0c9f7367373e1f0a" }, "downloads": -1, "filename": "djqgrid-0.1.2.tar.gz", "has_sig": false, "md5_digest": "995bdb309ac83ca9af31c1e6669a1b79", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 11875, "upload_time": "2014-04-15T21:26:07", "url": "https://files.pythonhosted.org/packages/8b/62/a6cb64eb3bde42eb1be161941a4ffad22402fac3a32aaf9edb6a0b97915d/djqgrid-0.1.2.tar.gz" } ], "0.2": [ { "comment_text": "", "digests": { "md5": "83c5c3cc3514f090da39659098e863c4", "sha256": "5d7252bef42ace0d8f0d45df6eaf8683b632336dfd277d707a9df0ad4cb08016" }, "downloads": -1, "filename": "djqgrid-0.2.tar.gz", "has_sig": false, "md5_digest": "83c5c3cc3514f090da39659098e863c4", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 406835, "upload_time": "2014-04-20T22:21:12", "url": "https://files.pythonhosted.org/packages/51/00/dae96d6e63b8d7d637b7b3ac64b80d74e64a4274ccc34c07ad5c598724a1/djqgrid-0.2.tar.gz" } ], "0.2.1": [ { "comment_text": "", "digests": { "md5": "3f7dbc484d7fe6d69971a0cd1d1cc674", "sha256": "70a4f9e94b0d42c5318f9c710d4114939106da55b7d3ea71e4805e375a3be3b8" }, "downloads": -1, "filename": "djqgrid-0.2.1.tar.gz", "has_sig": false, "md5_digest": "3f7dbc484d7fe6d69971a0cd1d1cc674", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 406769, "upload_time": "2014-04-27T07:37:36", "url": "https://files.pythonhosted.org/packages/55/6f/f221b465bdcff93a48d3119517eb33da7fa1b159b4d2f122ddf09b7a928d/djqgrid-0.2.1.tar.gz" } ], "0.2.2": [ { "comment_text": "", "digests": { "md5": "a411431966be715db7de6dc089430086", "sha256": "26d1ba1ae2db4fefc4666957d21c6e93ab783219fb48d89164b49b20607b1ede" }, "downloads": -1, "filename": "djqgrid-0.2.2.tar.gz", "has_sig": false, "md5_digest": "a411431966be715db7de6dc089430086", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 406779, "upload_time": "2014-04-27T12:22:38", "url": "https://files.pythonhosted.org/packages/78/36/f70101d593b7ad8c574d8198e8225ec28dae5c652f74407b248ad4619960/djqgrid-0.2.2.tar.gz" } ], "0.2.3": [ { "comment_text": "", "digests": { "md5": "6014440d90f1f89aaf774f0eb20871fd", "sha256": "e01439e9c32cdecd5c105d85d429556b54d28305a328faaf8a9284b9e31faaaf" }, "downloads": -1, "filename": "djqgrid-0.2.3.tar.gz", "has_sig": false, "md5_digest": "6014440d90f1f89aaf774f0eb20871fd", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 406815, "upload_time": "2014-05-11T08:44:25", "url": "https://files.pythonhosted.org/packages/0c/b4/09074a2d5bfe13871f2c3666ff67a0cf4807d30e1ae5b54be4ea5d44e3cb/djqgrid-0.2.3.tar.gz" } ], "0.2.4": [ { "comment_text": "", "digests": { "md5": "15c5be96a4f8de2e3357eb6579fb7657", "sha256": "87088d1f99ed925da724bfa680976e058c0f526d2eabfc7c14fc511fde1f117d" }, "downloads": -1, "filename": "djqgrid-0.2.4.zip", "has_sig": false, "md5_digest": "15c5be96a4f8de2e3357eb6579fb7657", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 452756, "upload_time": "2015-07-06T20:26:30", "url": "https://files.pythonhosted.org/packages/10/c3/3f25638e4de7e51f2008ef1f8a29fdba8ca744352dcffb56648fe69cbc31/djqgrid-0.2.4.zip" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "15c5be96a4f8de2e3357eb6579fb7657", "sha256": "87088d1f99ed925da724bfa680976e058c0f526d2eabfc7c14fc511fde1f117d" }, "downloads": -1, "filename": "djqgrid-0.2.4.zip", "has_sig": false, "md5_digest": "15c5be96a4f8de2e3357eb6579fb7657", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 452756, "upload_time": "2015-07-06T20:26:30", "url": "https://files.pythonhosted.org/packages/10/c3/3f25638e4de7e51f2008ef1f8a29fdba8ca744352dcffb56648fe69cbc31/djqgrid-0.2.4.zip" } ] }