{"id":19310286,"url":"https://github.com/cedadev/fwtheme-django-ceda-serv","last_synced_at":"2026-02-26T01:40:25.496Z","repository":{"id":56006700,"uuid":"124467594","full_name":"cedadev/fwtheme-django-ceda-serv","owner":"cedadev","description":"CEDA Services theme for django apps","archived":false,"fork":false,"pushed_at":"2025-01-31T23:06:15.000Z","size":518,"stargazers_count":1,"open_issues_count":7,"forks_count":1,"subscribers_count":8,"default_branch":"master","last_synced_at":"2025-02-01T00:18:21.871Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"HTML","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/cedadev.png","metadata":{"files":{"readme":"README.md","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,"publiccode":null,"codemeta":null}},"created_at":"2018-03-09T01:04:25.000Z","updated_at":"2024-01-10T13:47:57.000Z","dependencies_parsed_at":"2024-01-17T11:53:57.328Z","dependency_job_id":"4d6e42cf-d2a8-405e-8b4e-12c4f62943f8","html_url":"https://github.com/cedadev/fwtheme-django-ceda-serv","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cedadev%2Ffwtheme-django-ceda-serv","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cedadev%2Ffwtheme-django-ceda-serv/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cedadev%2Ffwtheme-django-ceda-serv/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cedadev%2Ffwtheme-django-ceda-serv/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cedadev","download_url":"https://codeload.github.com/cedadev/fwtheme-django-ceda-serv/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240411439,"owners_count":19797089,"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-10T00:23:30.863Z","updated_at":"2026-02-26T01:40:20.456Z","avatar_url":"https://github.com/cedadev.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# fwtheme-django-ceda-serv\n\nDjango app providing Django framework theme for Django-based web apps, themed for CEDA Services. Requires lower-level fwtheme-django.\n\n## Installation\n\n`fwtheme-django-ceda-serv` can be installed directly from Github using pip:\n\n```\n$ pip install git+https://github.com/cedadev/fwtheme-django-ceda-serv.git\n```\n\nIn `settings.py`, this app should have an entry in INSTALLED_APPS *before* fwtheme_django for correct precedence, as its templates should override those of `fwtheme-django`. Similarly with orgtheme-ceda-serv and orgtheme:\n\n```\n    'fwtheme_django_ceda_serv',\n    'fwtheme_django',\n    'orgtheme_ceda_serv',\n    'orgtheme',\n```\n\n## User Status\n\nThere are two ways to enable the CEDA user status menu in the banner:\n\n1. If using cookie based CEDA authentication, you must install the [DJ Security Middleware](https://github.com/cedadev/dj-security-middleware) package and include the middleware in your settings:\n\n   ```python\n   MIDDLEWARE = [\n       ...\n       \"dj_security_middleware.middleware.DJSecurityMiddleware\",\n   ]\n   ```\n\n2. If using standard Django authentication (e.g. with Django admin users or a custom authentication backend),\n   you simply need to have reversable login and logout URLs included in your `urls.py`:\n\n   ```python\n   urlpatterns = [\n       path(\"/login\", LoginView.as_view(), name=\"login\"),\n       path(\"/logout\", LogoutView.as_view(), name=\"logout\"),\n   ]\n   ```\n\n   If you wish to use names other than \"login\" and \"logout\", you can declare them in settings. For example, if you are using\n   the recommended [OIDC authentication backend for CEDA accounts](https://github.com/cedadev/django-oidc-extras), you would set your URLs like this:\n\n   ```python\n   LOGIN_URL_NAME = \"oidc_authentication_init\"\n   LOGOUT_URL_NAME = \"oidc_logout\"\n   ```\n\n### Login with GET\n\nWhile not recommended, it is possible to configure the user status block to include an HTTP GET call for logout, instead of a form POST:\n\n```python\nLOGOUT_WITH_POST = False\n```\n\nThis setting is `True` by default.\n\n## Extra Data Centres\nCSS/Img static files can be found in `fwtheme_django_ceda_serv/static/extra_data_centres` and the html files for each data centre are in `templates/extra_data_centres`. Context processor for data centres and global datacentre dicts have now been added in `context_processors.py` and `default_settings.py` respectively.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcedadev%2Ffwtheme-django-ceda-serv","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcedadev%2Ffwtheme-django-ceda-serv","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcedadev%2Ffwtheme-django-ceda-serv/lists"}