{"id":18457179,"url":"https://github.com/redsolution/django-seo","last_synced_at":"2025-04-08T05:33:22.857Z","repository":{"id":978294,"uuid":"778752","full_name":"redsolution/django-seo","owner":"redsolution","description":"Add SEO fields","archived":false,"fork":false,"pushed_at":"2024-08-12T12:47:30.000Z","size":65,"stargazers_count":17,"open_issues_count":3,"forks_count":10,"subscribers_count":11,"default_branch":"master","last_synced_at":"2025-03-23T06:41:27.453Z","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":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/redsolution.png","metadata":{"files":{"readme":"README.md","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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2010-07-16T12:40:07.000Z","updated_at":"2024-01-19T10:22:43.000Z","dependencies_parsed_at":"2022-08-06T10:01:19.297Z","dependency_job_id":"9025a08e-76b9-4e9a-b2b2-5a03cbec25b1","html_url":"https://github.com/redsolution/django-seo","commit_stats":null,"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/redsolution%2Fdjango-seo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/redsolution%2Fdjango-seo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/redsolution%2Fdjango-seo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/redsolution%2Fdjango-seo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/redsolution","download_url":"https://codeload.github.com/redsolution/django-seo/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247785864,"owners_count":20995641,"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-11-06T08:13:40.536Z","updated_at":"2025-04-08T05:33:22.401Z","avatar_url":"https://github.com/redsolution.png","language":"Python","readme":"# Django SEO application\n\n\nOpen source SEO management system based on the Django framework\n\n## Features\n- Easy SEO fields attachment to any site page\n- Several ways to render seo-fields\n- Query caching for faster page loading\n\n## Requirements\n- Django \u003e= 2.2\n- Python \u003e= 3.5\n\n## Installation and basic usage\n\n1. Install package:\n\n    `` pip install git+git://github.com/oldroute/django-seo.git``\n\n2. Configure your settings file:\n\n\t**SEO_FOR_MODELS** - list of models for attaching seo-fields in format: \u003capp_name\u003e.\u003cmodel_name\u003e.\n\n\tSimple settings configuration:\n\n    ```python\n    INSTALLED_APPS += ['seo']\n    SEO_FOR_MODELS = [\n        'pages.Page',\n        'easy_news.News',\n    ]\n    ```\n\n3. Call template tag in html template:\n\n  \t**Use case 1**: Call for specified url. In this case you must fill seo fields for specified url address in the admin of seo application.\n\n    ```html\n\t\u003chead\u003e\n        ...\n        {% seo %}\n        ...\n    \u003c/head\u003e\n    ```\n\n  \t**Use case 2**: Call for specified object (model instance declared in **SEO_FOR_MODELS**). In this case you must fill seo fields in the admin page of the object:\n\n    ```html\n\t\u003chead\u003e\n        ...\n        {% seo object %}\n        ...\n    \u003c/head\u003e\n    ```\n\n4. Apply migrations and run local server:\n\n    ```python\n    python manage.py migrate seo\n    python manage.py runserver\n    ```\n5. Fill seo-fields in admin interface\n\n**Configure is done!**\n\n## Advanced template tag usage\n\n**Use case 3**: Setting default values for fields through parameters: ``title_default``, ``desc_default``, ``keys_default``:\n\n```html\n\u003chead\u003e\n...\n{% seo current_page title_default='My title' %}\n...\n\u003c/head\u003e\n```\n\n\n**Use case 4**: Setting text postfix through parameters: ``title_postfix``, ``desc_postfix``, ``keys_postfix``:\n\n\n```html\n\u003chead\u003e\n...\n{% seo current_page title_postfix=' my postfix' %}\n...\n\u003c/head\u003e\n```\n\nYour can combine any parameters together\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fredsolution%2Fdjango-seo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fredsolution%2Fdjango-seo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fredsolution%2Fdjango-seo/lists"}