{"id":20515030,"url":"https://github.com/aleksi44/wagtailsvg","last_synced_at":"2025-08-21T12:30:58.621Z","repository":{"id":41195117,"uuid":"318785279","full_name":"Aleksi44/wagtailsvg","owner":"Aleksi44","description":"Wagtail + SVG","archived":false,"fork":false,"pushed_at":"2024-01-09T22:45:28.000Z","size":271,"stargazers_count":34,"open_issues_count":4,"forks_count":20,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-04-24T15:45:14.238Z","etag":null,"topics":["django","svg","wagtail"],"latest_commit_sha":null,"homepage":"https://pypi.org/project/wagtailsvg/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Aleksi44.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,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2020-12-05T12:40:19.000Z","updated_at":"2024-04-24T15:45:14.238Z","dependencies_parsed_at":"2024-04-14T16:58:38.717Z","dependency_job_id":"e3ddd8e9-8450-4932-a0b5-825cd73e470c","html_url":"https://github.com/Aleksi44/wagtailsvg","commit_stats":{"total_commits":92,"total_committers":12,"mean_commits":7.666666666666667,"dds":0.3804347826086957,"last_synced_commit":"78844b8c32f49f24b53dc8ca4328a06c1e09db73"},"previous_names":[],"tags_count":35,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Aleksi44%2Fwagtailsvg","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Aleksi44%2Fwagtailsvg/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Aleksi44%2Fwagtailsvg/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Aleksi44%2Fwagtailsvg/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Aleksi44","download_url":"https://codeload.github.com/Aleksi44/wagtailsvg/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":230511483,"owners_count":18237658,"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","svg","wagtail"],"created_at":"2024-11-15T21:19:20.838Z","updated_at":"2025-08-21T12:30:58.606Z","avatar_url":"https://github.com/Aleksi44.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"***********\nWagtail SVG\n***********\n\n.. image:: https://img.shields.io/pypi/v/wagtailsvg\n    :target: https://pypi.org/project/wagtailsvg/\n\n.. image:: https://img.shields.io/pypi/pyversions/wagtailsvg\n    :target: https://pypi.org/project/wagtailsvg/\n\n`Wagtail \u003chttps://github.com/wagtail/wagtail\u003e`_ + `SVG \u003chttps://developer.mozilla.org/docs/Web/SVG\u003e`_ = 🚀\n\n**SVG** for **Wagtail** with :\n\n- **Svg** : Model\n- **SvgChooserPanel** : ChooserPanel for ForeignKey\n- **SvgChooserBlock** : ChooserBlock for StreamField\n\nCan be used like this :\n\n.. code-block:: python\n\n    from wagtailsvg.models import Svg\n    from wagtailsvg.blocks import SvgChooserBlock\n    from wagtailsvg.edit_handlers import SvgChooserPanel\n\n\n    class TestPage(Page):\n        logo = models.ForeignKey(\n            Svg,\n            related_name='+',\n            null=True,\n            blank=True,\n            on_delete=models.SET_NULL\n        )\n        body = StreamField([\n            ('svg', SvgChooserBlock()),\n        ], blank=True)\n\n        content_panels = Page.content_panels + [\n            SvgChooserPanel('logo'),\n            StreamFieldPanel('body'),\n        ]\n\n\nSetup\n#####\n\nInstall with pip :\n\n``pip install wagtailsvg``\n\nAdd these to django apps installed :\n\n.. code-block:: python\n\n    INSTALLED_APPS = [\n        'wagtailsvg',\n        'wagtail_modeladmin',\n        'generic_chooser',\n        ...\n    ]\n\nSet the SVG download folder in the Django settings\n\n.. code-block:: python\n\n    WAGTAILSVG_UPLOAD_FOLDER = 'svg'\n\nDefault value is 'media'\n\nDevelopment env\n###############\n\n**If first run**\n\n::\n\n    git clone git@github.com:Aleksi44/wagtailsvg.git\n    pip install -r requirements.txt\n    python manage.py migrate\n    python manage.py init\n\n\n**Run Django Server**\n\n::\n\n    python manage.py runserver 0.0.0.0:4243\n\n\n**Run Webpack Server**\n\n::\n\n    yarn\n    yarn start\n\n\nSnoweb SVG\n##########\n\nTo integrate SVG icons on Wagtail, I created Snoweb SVG with +2000 optimized SVG.\nCheck the `SVG library \u003chttps://github.com/Aleksi44/snoweb-svg\u003e`_.\n\nFeel free to contact me at `hello@snoweb.io`.\n\nMade with ❤ by `Snoweb \u003chttps://www.snoweb.io/fr/\u003e`_.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faleksi44%2Fwagtailsvg","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faleksi44%2Fwagtailsvg","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faleksi44%2Fwagtailsvg/lists"}