{"id":21919461,"url":"https://github.com/dlrsp/django-sites-extra","last_synced_at":"2025-04-19T12:33:23.731Z","repository":{"id":213860371,"uuid":"735121337","full_name":"DLRSP/django-sites-extra","owner":"DLRSP","description":"Django application to extend the standard \"sites\" framework with extra utils.","archived":false,"fork":false,"pushed_at":"2024-10-16T08:06:22.000Z","size":432,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-10-17T20:23:49.704Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/DLRSP.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":".github/CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":"CODEOWNERS","security":".github/SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-12-23T18:30:51.000Z","updated_at":"2024-10-16T08:06:24.000Z","dependencies_parsed_at":"2024-02-19T09:26:24.970Z","dependency_job_id":"c7c54704-b879-4c26-a90f-a651b2801ba8","html_url":"https://github.com/DLRSP/django-sites-extra","commit_stats":null,"previous_names":["dlrsp/django-sites-extra"],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DLRSP%2Fdjango-sites-extra","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DLRSP%2Fdjango-sites-extra/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DLRSP%2Fdjango-sites-extra/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DLRSP%2Fdjango-sites-extra/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DLRSP","download_url":"https://codeload.github.com/DLRSP/django-sites-extra/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":226979180,"owners_count":17712574,"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-28T20:08:04.986Z","updated_at":"2024-11-28T20:08:05.720Z","avatar_url":"https://github.com/DLRSP.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# django-sites-extra [![PyPi license](https://img.shields.io/pypi/l/django-sites-extra.svg)](https://pypi.python.org/pypi/django-sites-extra)\n\n[![PyPi status](https://img.shields.io/pypi/status/django-sites-extra.svg)](https://pypi.python.org/pypi/django-sites-extra)\n[![PyPi version](https://img.shields.io/pypi/v/django-sites-extra.svg)](https://pypi.python.org/pypi/django-sites-extra)\n[![PyPi python version](https://img.shields.io/pypi/pyversions/django-sites-extra.svg)](https://pypi.python.org/pypi/django-sites-extra)\n[![PyPi downloads](https://img.shields.io/pypi/dm/django-sites-extra.svg)](https://pypi.python.org/pypi/django-sites-extra)\n[![PyPi downloads](https://img.shields.io/pypi/dw/django-sites-extra.svg)](https://pypi.python.org/pypi/django-sites-extra)\n[![PyPi downloads](https://img.shields.io/pypi/dd/django-sites-extra.svg)](https://pypi.python.org/pypi/django-sites-extra)\n\n## GitHub ![GitHub release](https://img.shields.io/github/tag/DLRSP/django-sites-extra.svg) ![GitHub release](https://img.shields.io/github/release/DLRSP/django-sites-extra.svg)\n\n## Test [![codecov.io](https://codecov.io/github/DLRSP/django-sites-extra/coverage.svg?branch=main)](https://codecov.io/github/DLRSP/django-sites-extra?branch=main) [![pre-commit.ci status](https://results.pre-commit.ci/badge/github/DLRSP/django-sites-extra/main.svg)](https://results.pre-commit.ci/latest/github/DLRSP/django-sites-extra/main) [![gitthub.com](https://github.com/DLRSP/django-sites-extra/actions/workflows/ci.yaml/badge.svg)](https://github.com/DLRSP/django-sites-extra/actions/workflows/ci.yaml)\n\n## Check Demo Project\n* Check the demo repo on [GitHub](https://github.com/DLRSP/example/tree/django-sites-extra)\n\n## Requirements\n-   Python 3.8+ supported.\n-   Django 3.2+ supported.\n\n## Setup\n1. Install from **pip**:\n    ```shell\n    pip install django-sites-extra\n    ```\n2. Modify `settings.py` by adding the app to `INSTALLED_APPS`:\n    ```python\n    INSTALLED_APPS = [\n        # ...\n        \"sites_extra\",\n        # ...\n    ]\n    ```\n3. Execute Django's command `migrate` inside your project's root:\n    ```shell\n    python manage.py migrate\n    Running migrations:\n      Applying sites_extra.0001_initial... OK\n    ```\n4. Modify `settings.py` by adding the app's context processor to `TEMPLATES`:\n   ```python\n   TEMPLATES = [\n       {\n           # ...\n           \"OPTIONS\": {\n               \"context_processors\": [\n                   # ...\n                   \"sites_extra.context_processors.info\",\n                   # ...\n               ],\n           },\n       },\n   ]\n   ```\n5. Optionally, but sugguested, the Django's Current Site middleware is enabled inside `settings.py`:\n   ```python\n   MIDDLEWARE = (\n       # ...\n       \"django.contrib.sites.middleware.CurrentSiteMiddleware\",\n       # ...\n   )\n   ```\n## Run Example Project\n\n```shell\ngit clone --depth=50 --branch=django-sites-extra https://github.com/DLRSP/example.git DLRSP/example\ncd DLRSP/example\npython manage.py runserver\n```\n\nNow browser the app @ http://127.0.0.1:8000\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdlrsp%2Fdjango-sites-extra","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdlrsp%2Fdjango-sites-extra","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdlrsp%2Fdjango-sites-extra/lists"}