{ "info": { "author": "Maxim Shaitanov", "author_email": "maximshaitanov@gmail.com", "bugtrack_url": null, "classifiers": [ "Environment :: Web Environment", "Framework :: Django", "Intended Audience :: Developers", "Operating System :: OS Independent", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7" ], "description": "*********************\ndjango-script-pattern\n*********************\n\nThis app allows you to add ``script`` blocks into your pages using url patterns like:\n \n- /category/*\n- /\\*/subcategory/\\*\n\n# Includes GET parameters\n\n- /products/catalog/\\*category=some-category\\*\n \n\nUse ``*`` to pass any symbols and ``$`` as the end. \n\nAvailable to use four block locations:\n\n1. Head - Top\n2. Head - Bottom\n3. Body - Top\n4. Body - Bottom\n\n************\nInstallation\n************\n\nInstall with pip:\n\n.. code:: shell\n\n $ pip install django-script-pattern\n\n\n**********************\nUpdate INSTALLED_APPS:\n**********************\n\n.. code:: python\n\n INSTALLED_APPS = [\n ...\n 'script_pattern',\n 'django-admin-sortable2',\n 'django_jinja', # optional for jinja2 global function\n ...\n ]\n\nApply migrations:\n\n.. code:: shell\n\n $ python manage.py migrate\n\n---------------\nExample to use:\n---------------\n\n.. code:: jinja\n\n #layout.jinja\n \n \n {{ get_script_pattern(request, 'head', 'top') }}\n ...\n some head content\n ...\n {{ get_script_pattern(request, 'head', 'bottom') }}\n \n\n \n {{ get_script_pattern(request, 'body', 'top') }}\n ...\n some body content\n ...\n {{ get_script_pattern(request, 'body', 'bottom') }}\n \n ", "description_content_type": "text/x-rst", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://gitlab.com/kastielspb/django-script-pattern", "keywords": "", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "django-script-pattern", "package_url": "https://pypi.org/project/django-script-pattern/", "platform": "", "project_url": "https://pypi.org/project/django-script-pattern/", "project_urls": { "Homepage": "https://gitlab.com/kastielspb/django-script-pattern" }, "release_url": "https://pypi.org/project/django-script-pattern/0.3.3/", "requires_dist": null, "requires_python": "", "summary": "Django script pattern app", "version": "0.3.3" }, "last_serial": 5331130, "releases": { "0.2": [ { "comment_text": "", "digests": { "md5": "8f2bcadc6e20e3f35cc362a55546b56e", "sha256": "b14204f71f8d4d63843ba3aac12c0abda960d89cef4d93a36332a4e988714542" }, "downloads": -1, "filename": "django-script-pattern-0.2.tar.gz", "has_sig": false, "md5_digest": "8f2bcadc6e20e3f35cc362a55546b56e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5392, "upload_time": "2019-05-14T14:35:51", "url": "https://files.pythonhosted.org/packages/e2/1a/167ebf6e3c3e07204b4c754ee914b88db2a026a89aa1dd29341c77034218/django-script-pattern-0.2.tar.gz" } ], "0.3": [ { "comment_text": "", "digests": { "md5": "1776e6054fe203f57f462efc3de4436f", "sha256": "3c088ea7694b241465fdcd918670337d71accbe38e6d931e49ea98b54b4027f5" }, "downloads": -1, "filename": "django-script-pattern-0.3.tar.gz", "has_sig": false, "md5_digest": "1776e6054fe203f57f462efc3de4436f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9912, "upload_time": "2019-05-15T11:31:14", "url": "https://files.pythonhosted.org/packages/17/5b/b62e51f21bd960740323b0d8b8e0ee05af15092d3cff0574fcb0179be1ed/django-script-pattern-0.3.tar.gz" } ], "0.3.1": [ { "comment_text": "", "digests": { "md5": "e1d40678c4fe9e270db2c6a25f80418a", "sha256": "e24cabeb21df6e15bb5645bf30e459e18cd6bca4839be410cd78a4decebaec3d" }, "downloads": -1, "filename": "django-script-pattern-0.3.1.tar.gz", "has_sig": false, "md5_digest": "e1d40678c4fe9e270db2c6a25f80418a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9010, "upload_time": "2019-05-15T12:56:42", "url": "https://files.pythonhosted.org/packages/70/9f/2c094253fd5d5b18adee5e56363060d3d68fbefac945408d86ee1a061eea/django-script-pattern-0.3.1.tar.gz" } ], "0.3.2": [ { "comment_text": "", "digests": { "md5": "bcb43aa5c352fdd99f2e2a7e6be646c4", "sha256": "f514db3c0c1c191a1845c78ace662e192c884150fd24c64a686956a344652c91" }, "downloads": -1, "filename": "django-script-pattern-0.3.2.tar.gz", "has_sig": false, "md5_digest": "bcb43aa5c352fdd99f2e2a7e6be646c4", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9018, "upload_time": "2019-05-15T13:03:21", "url": "https://files.pythonhosted.org/packages/ed/cd/dd4a01eaa98b8dfb241cd4df1e7166c436181e2fbed755a9912345023e9f/django-script-pattern-0.3.2.tar.gz" } ], "0.3.3": [ { "comment_text": "", "digests": { "md5": "f162aa03f4de8166c1792c7d7fc06307", "sha256": "e4bcc734f801e3bda558c841c77ce7c56efde36f111b7c681fc233866c419e6e" }, "downloads": -1, "filename": "django-script-pattern-0.3.3.tar.gz", "has_sig": false, "md5_digest": "f162aa03f4de8166c1792c7d7fc06307", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9032, "upload_time": "2019-05-29T08:39:10", "url": "https://files.pythonhosted.org/packages/1a/fa/50691a29b811da5a2690d69e07be5ac78969e77b8723f5e9a8c520249587/django-script-pattern-0.3.3.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "f162aa03f4de8166c1792c7d7fc06307", "sha256": "e4bcc734f801e3bda558c841c77ce7c56efde36f111b7c681fc233866c419e6e" }, "downloads": -1, "filename": "django-script-pattern-0.3.3.tar.gz", "has_sig": false, "md5_digest": "f162aa03f4de8166c1792c7d7fc06307", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9032, "upload_time": "2019-05-29T08:39:10", "url": "https://files.pythonhosted.org/packages/1a/fa/50691a29b811da5a2690d69e07be5ac78969e77b8723f5e9a8c520249587/django-script-pattern-0.3.3.tar.gz" } ] }