{ "info": { "author": "tamask", "author_email": "tamas.kemenczy@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 2 - Pre-Alpha", "Environment :: Web Environment", "Framework :: Django", "Intended Audience :: Developers", "License :: OSI Approved :: BSD License", "Operating System :: OS Independent", "Programming Language :: Python" ], "description": "* Bugs_\r\n\r\n.. _Bugs: http://bugs.launchpad.net/django-viewssi\r\n\r\nA template tag for making simulated GET requests to Django application view\r\nfunctions. The HTTP response can be displayed in the given template.\r\n\r\nVariations of usage of ``viewssi``::\r\n\r\n {% viewssi path.to.view %}\r\n {% viewssi path.to.view arg,arg2,kwarg=val %}\r\n {% viewssi path.to.view arg,arg2,kwarg=val as var %}\r\n {% viewssi path.to.view arg,arg2,kwarg=val get p1=v1,p2=v2 as var %}\r\n\r\nThe first argument is the path to a view function to call. If the\r\nview requires ``args`` and/or ``kwargs``, pass them as the second\r\ntoken in the tag. ``args`` and the values of ``kwargs`` are\r\nresolved to template variables unless they are quoted.\r\n\r\nThe view doesn't have to be exposed in a URL\r\nconfiguration. Essentially any function can be called that accepts\r\none argument (the request) and returns a\r\n``django.http.HttpResponse`` object.\r\n\r\nYou can pass a GET query string by including a ``get`` token in\r\nthe tag followed by ``key=value`` pairs. Parameter values are also\r\nresolved to template variables unless they are quoted.\r\n\r\nIf the ``as