{"id":17034988,"url":"https://github.com/justquick/django-varnish","last_synced_at":"2025-06-12T12:38:59.746Z","repository":{"id":672077,"uuid":"315471","full_name":"justquick/django-varnish","owner":"justquick","description":"Integration between Django and the Varnish HTTP accelerator using the management port and telnet","archived":false,"fork":false,"pushed_at":"2014-06-28T07:38:08.000Z","size":257,"stargazers_count":174,"open_issues_count":5,"forks_count":28,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-04-12T12:43:43.696Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/justquick.png","metadata":{"files":{"readme":"README.rst","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2009-09-23T15:39:26.000Z","updated_at":"2025-03-27T19:22:50.000Z","dependencies_parsed_at":"2022-07-05T09:22:18.267Z","dependency_job_id":null,"html_url":"https://github.com/justquick/django-varnish","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/justquick/django-varnish","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/justquick%2Fdjango-varnish","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/justquick%2Fdjango-varnish/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/justquick%2Fdjango-varnish/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/justquick%2Fdjango-varnish/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/justquick","download_url":"https://codeload.github.com/justquick/django-varnish/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/justquick%2Fdjango-varnish/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259466745,"owners_count":22862378,"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":[],"created_at":"2024-10-14T08:45:12.853Z","updated_at":"2025-06-12T12:38:59.717Z","avatar_url":"https://github.com/justquick.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"Django Varnish\n================\n\nVarnish is a state-of-the-art, high-performance HTTP accelerator.\nFor more information checkout `Varnish Site \u003chttp://varnish.projects.linpro.no/\u003e`_\n\nDjango Varnish works with Varnish server(s) to manage caching of object pages.\nIt allows you to monitor certain models and when they are updated,\nDjango Varnish will purge the model's absolute_url on your frontend(s).\nThis ensures that object detail pages are served blazingly fast and are always up to date.\nYou may also go in and manually tweak things (such as your VCL configuration) using a management command. \n\n\nSetup\n-------\n1. Install the `varnish python bindings \u003chttp://github.com/justquick/python-varnish\u003e`_\n2. Put ``varnishapp`` in your ``INSTALLED_APPS`` then set a few more settings.\n3. Add ``(r'^admin/varnish/', include('varnishapp.urls')),`` to your urlconf\n\nConfigure\n------------\n``VARNISH_WATCHED_MODELS`` is a list of installed models whose absolute_urls you want to purge from your\nVarnish cache upon saving. Example: ``('auth.user','profiles.profile')``\n\n``VARNISH_MANAGEMENT_ADDRS`` is a list of Varnish cache addresses (containing their management ports).\nExample ``('server1:6082','server2:6082')``\n\nManagement\n-------------\n\nYou can view the status of your Varnish cache servers by going to ``/admin/varnish/`` and being a superuser. `Here is what it looks like in production \u003chttp://wiki.github.com/justquick/django-varnish/\u003e`_.\n\nRun the management command ``varnishmgt`` to blindly execute arguments to all Varnish backends. Example::\n\n    $ ./manage.py varnishmgt purge_url \"/\"","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjustquick%2Fdjango-varnish","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjustquick%2Fdjango-varnish","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjustquick%2Fdjango-varnish/lists"}