{"id":40979500,"url":"https://github.com/interlegis/djbs-theme","last_synced_at":"2026-01-22T07:11:49.224Z","repository":{"id":251921523,"uuid":"838847788","full_name":"interlegis/djbs-theme","owner":"interlegis","description":"Django Admin Bootstrap theme","archived":false,"fork":false,"pushed_at":"2025-10-07T13:40:28.000Z","size":836,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":6,"default_branch":"main","last_synced_at":"2025-10-07T15:29:41.980Z","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":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/interlegis.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2024-08-06T13:11:45.000Z","updated_at":"2025-10-07T13:39:19.000Z","dependencies_parsed_at":"2024-11-18T14:21:37.221Z","dependency_job_id":"c33945f3-0d7f-48d5-8162-67f081dd7dbb","html_url":"https://github.com/interlegis/djbs-theme","commit_stats":null,"previous_names":["interlegis/djbs-theme"],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/interlegis/djbs-theme","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/interlegis%2Fdjbs-theme","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/interlegis%2Fdjbs-theme/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/interlegis%2Fdjbs-theme/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/interlegis%2Fdjbs-theme/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/interlegis","download_url":"https://codeload.github.com/interlegis/djbs-theme/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/interlegis%2Fdjbs-theme/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28657981,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-22T01:17:37.254Z","status":"online","status_checked_at":"2026-01-22T02:00:07.137Z","response_time":144,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":"2026-01-22T07:11:48.538Z","updated_at":"2026-01-22T07:11:49.217Z","avatar_url":"https://github.com/interlegis.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# djbs-theme\n[![en](https://img.shields.io/badge/lang-en-red.svg)](https://github.com/interlegis/djbs-theme/blob/main/README.md)\n[![pt-br](https://img.shields.io/badge/lang-pt--br-green.svg)](https://github.com/interlegis/djbs-theme/blob/main/README.pt-br.md)\n\nDjango Admin Bootstrap theme\n\ndjbs is a theme for django-admin based on the bootstrap framework. It is an adaptation of the django.contrib.admin app templates and the django.forms templates to use bootstrap components.\n\n## Requirements:\n\n- Python\u003e3.10\n- Django\u003e5.1\n\n## External packages (via CDN):\n\n- Bootstrap=5.3\n\n## getting it\n\nYou can get djbs-theme by using pip:\n\n```\n$ pip install djbs-theme\n```\n\nIf you want to install it from source, pip directly from git repository:\n\n```\n$ pip install git+https://github.com/interlegis/djbs-theme.git\n```\n\n\n## Installing it\n\nTo enable `djbs-theme` in your project you need to add `djbs` and `django.forms` to `INSTALLED_APPS` in your project's `settings.py` file, just before the `'django.contrib.admin'` entry:\n\n```python\n    INSTALLED_APPS = (\n        ...\n        'djbs',\n        'django.forms',\n        'django.contrib.admin',\n        ...\n    )\n```\n\nSet the form renderer to TemplatesSetting, adding the above code:\n\n```python\n    FORM_RENDERER = 'django.forms.renderers.TemplatesSetting'\n```\n\nAdd `djbs.context_processors.sets` to the `context_processors` list inside `OPTIONS`:\n\n```python\n    TEMPLATES = [\n        {\n            \"BACKEND\": \"django.template.backends.django.DjangoTemplates\",\n            \"DIRS\": [BASE_DIR / \"templates\"],\n            \"APP_DIRS\": True,\n            \"OPTIONS\": {\n                \"context_processors\": [\n                    \"django.template.context_processors.debug\",\n                    \"django.template.context_processors.request\",\n                    \"django.contrib.auth.context_processors.auth\",\n                    \"django.contrib.messages.context_processors.messages\",\n                    \"djbs.context_processors.sets\",\n                ],\n            },\n        },\n    ]\n```\n\n## Customizing\n\nTo customize the `djbs-theme` you need to add a `DJBSTHEME` dictionary into your projects `settings.py` file.\n\nThe default `djbs-theme` settings is:\n\n```python\n    DJBSTHEME_DEFAULTS = {\n        \"SEARCH_URL\": None,\n        \"SEARCH_PARAM\": None,\n        \"MENU_FILE\": BASE_DIR / \"menu_conf.yaml\",\n        \"CHECK_AS_SWITCH\": True,\n        \"FILTER_STYLE\": FILTER_STYLE_CLASSIC,\n        \"FIELDSET_STYLE\": STYLE_CARD,\n        \"INLINESET_STYLE\": STYLE_CARD,\n        \"BADGERIZE_FACETS\": True,\n        \"ICON_SOURCE\": \"https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.3/font/bootstrap-icons.min.css\",\n        \"ICON_TAG_PATTERN\": '\u003ci class=\"{icon} {classes}\" {attrs}\u003e\u003c/i\u003e',\n        \"ICONS\": {\n            \"add\": \"bi bi-plus-square\",\n            \"back\": \"bi bi-arrow-left-short\",\n            \"check\": \"bi bi-check2\",\n            \"check-all\": \"bi bi-check-all\",\n            \"chevron-left\": \"bi bi-chevron-left\",\n            \"chevron-right\": \"bi bi-chevron-right\",\n            \"copy\": \"bi bi-copy\",\n            \"default\": \"bi bi-wrench-adjustable-circle\",\n            \"delete\": \"bi bi-trash3\",\n            \"delete_selected\": \"bi bi-trash3\",\n            \"dismiss\": \"bi bi-x\",\n            \"edit\": \"bi bi-pencil-square\",\n            \"forward\": \"bi bi-chevron-double-right\",\n            \"help\": \"bi bi-question-circle\",\n            \"hide\": \"bi bi-eye-slash\",\n            \"history\": \"bi bi-clock-history\",\n            \"link\": \"bi bi-link-45deg\",\n            \"list-view\": \"bi bi-card-list\",\n            \"remove\": \"bi bi-eraser\",\n            \"rewind\": \"bi bi-chevron-double-left\",\n            \"save\": \"bi bi-save\",\n            \"search\": \"bi bi-search\",\n            \"show\": \"bi bi-eye\",\n            \"theme-auto\": \"bi bi-circle-half\",\n            \"theme-light\": \"bi bi-sun-fill\",\n            \"theme-dark\": \"bi bi-moon-stars-fill\",\n            \"user\": \"bi bi-person-fill\",\n            \"viewsite\": \"bi bi-globe2\",\n        },\n    }\n```\n\nYou can override any settings. Omitted settings remain the default setting.\n\n## Documentation\n\nThe djbs-theme documentation is in development yet.\n\n## Contribute\n\nTo set up a development environment (assuming you have an Ubuntu installation with Python3 already installed):\n\n  - Install the venv module:\n\n    ```bash\n    $ sudo apt update \u0026\u0026 sudo apt install python3-venv\n    ```\n\n  - Create the project directory:\n\n    ```bash\n    $ mkdir djbs-theme \u0026\u0026 cd djbs-theme\n    ```\n\n  - Create a virtualenv in the project:\n    \n    ```bash\n    $ python3 -m venv .venv/djbs-theme\n    ```\n\n  - Activate the virtualenv:\n    \n    ```bash\n    $ source .venv/djbs-theme/bin/activate\n    ```\n\n  - Install the necessary python packages:\n    \n    ```bash\n    $ pip install pip ipython django pyYaml django-debug-toolbar --upgrade\n    ```\n\n  - Create the django-project:\n\n    ```bash\n    $ django-admin startproject djbstheme .\n    ```\n\n  - Clone this repository into your project:\n    \n    ```bash\n    $ git clone https://github.com/interlegis/djbs-theme.git djbs\n    ```\n\n  - Configure the project by changing the application's `settings.py`.\n\n    - Use your preferred text editor to edit the `./djbstheme/settings.py` file.\n    - Find the `INSTALLED_APPS` list and add, before the `'django.contrib.admin'` app, the `'djbs'` and `'django.forms'` apps.\n    - Add the `FORM_RENDERER = 'django.forms.renderers.TemplatesSetting'` configuration.\n    - add `\"djbs.context_processors.sets\"` to the `context_processors` list inside `OPTIONS`.\n\nThat's it! Your project is configured.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finterlegis%2Fdjbs-theme","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Finterlegis%2Fdjbs-theme","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finterlegis%2Fdjbs-theme/lists"}