{"id":18041555,"url":"https://github.com/bashu/django-fancybox","last_synced_at":"2025-04-09T19:17:05.655Z","repository":{"id":9828684,"uuid":"11815820","full_name":"bashu/django-fancybox","owner":"bashu","description":"🎁 Simple fancybox modal for Django","archived":false,"fork":false,"pushed_at":"2021-12-02T06:27:21.000Z","size":114,"stargazers_count":8,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"develop","last_synced_at":"2025-03-23T21:11:17.710Z","etag":null,"topics":["django","fancybox"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bashu.png","metadata":{"files":{"readme":"README.rst","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-08-01T12:02:54.000Z","updated_at":"2021-12-02T06:27:24.000Z","dependencies_parsed_at":"2022-09-06T02:00:28.121Z","dependency_job_id":null,"html_url":"https://github.com/bashu/django-fancybox","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bashu%2Fdjango-fancybox","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bashu%2Fdjango-fancybox/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bashu%2Fdjango-fancybox/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bashu%2Fdjango-fancybox/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bashu","download_url":"https://codeload.github.com/bashu/django-fancybox/tar.gz/refs/heads/develop","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247622027,"owners_count":20968558,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["django","fancybox"],"created_at":"2024-10-30T16:10:37.131Z","updated_at":"2025-04-09T19:17:05.632Z","avatar_url":"https://github.com/bashu.png","language":"Python","readme":"django-fancybox\n===============\n\n.. image:: https://img.shields.io/pypi/v/django-fancybox.svg\n    :target: https://pypi.python.org/pypi/django-fancybox/\n\n.. image:: https://img.shields.io/pypi/dm/django-fancybox.svg\n    :target: https://pypi.python.org/pypi/django-fancybox/\n\n.. image:: https://img.shields.io/github/license/bashu/django-fancybox.svg\n    :target: https://pypi.python.org/pypi/django-fancybox/\n\nThis is a Django_ integration of Fancybox_.\n\nInstallation\n------------\n\nFirst install the module, preferably in a virtual environment. It can be installed from PyPI:\n\n.. code-block:: shell\n\n    pip install django-fancybox\n    \nExternal dependencies\n~~~~~~~~~~~~~~~~~~~~~\n\n* jQuery - This is not included in the package since it is expected that in most scenarios this would already be available.\n\nSetup\n-----\n\nAdd ``fancybox`` to  ``INSTALLED_APPS``:\n\n.. code-block:: python\n\n    INSTALLED_APPS += (\n        'fancybox',\n    )\n\nBe sure you have the ``django.template.context_processors.request`` processor\n\n.. code-block:: python\n\n    TEMPLATES = [\n        {\n            ...\n            'OPTIONS': {\n                'context_processors': [\n                    ...\n                    'django.template.context_processors.request',\n                ],\n            },\n        },\n    ]\n\nand just include ``fancybox`` templates\n\n.. code-block:: html+django\n\n    {% include \"fancybox/fancybox_css.html\" %} {# Before the closing head tag #}\n    {% include \"fancybox/fancybox_js.html\" %} {# Before the closing body tag #}\n\nWhen deploying on production server, don't forget to run :\n\n.. code-block:: shell\n\n    python manage.py collectstatic\n\nUsage\n-----\n\nExtend base template for ajax requests\n\n.. code-block:: html+django\n\n    {% extends request.is_ajax|yesno:\"fancybox/base.html,base.html\" %}\n\nAdd ``class=\"fancybox\"`` to a link, and set the href to a page you want to display\n\n.. code-block:: html+django\n\n    \u003ca data-fancybox data-type=\"ajax\" href=\"{% url 'remote.html' %}\" class=\"fancybox\"\u003eClick here\u003c/a\u003e\n\nPlease see ``example`` application. This application is used to manually test the functionalities of this package. This also serves as a good example.\n\nYou need only Django 1.4 or above to run that. It might run on older versions but that is not tested.\n\nContributing\n------------\n\nIf you like this module, forked it, or would like to improve it, please let us know!\nPull requests are welcome too. :-)\n\nLicense\n-------\n\n``django-fancybox`` is released under the BSD license.\n\n.. _django: https://www.djangoproject.com/\n.. _fancybox: http://fancyapps.com/fancybox/\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbashu%2Fdjango-fancybox","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbashu%2Fdjango-fancybox","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbashu%2Fdjango-fancybox/lists"}