{"id":19052392,"url":"https://github.com/dlrsp/django-static-base","last_synced_at":"2025-08-16T08:22:44.440Z","repository":{"id":202963945,"uuid":"708415590","full_name":"DLRSP/django-static-base","owner":"DLRSP","description":"Django application to serve up-to-date common static files (JQuery, Bootstrap, Plugins, ...) as \"base\" static directory","archived":false,"fork":false,"pushed_at":"2025-04-11T08:09:51.000Z","size":7693,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-02T20:24:36.406Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://dlrsp.github.io/django-static-base/","language":"JavaScript","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,"zenodo":null}},"created_at":"2023-10-22T13:58:18.000Z","updated_at":"2025-04-11T08:09:55.000Z","dependencies_parsed_at":"2024-04-14T09:30:50.111Z","dependency_job_id":"aa67b738-cb5f-4c17-b59b-c5d835c7030b","html_url":"https://github.com/DLRSP/django-static-base","commit_stats":null,"previous_names":["dlrsp/django-static-base"],"tags_count":16,"template":false,"template_full_name":null,"purl":"pkg:github/DLRSP/django-static-base","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DLRSP%2Fdjango-static-base","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DLRSP%2Fdjango-static-base/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DLRSP%2Fdjango-static-base/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DLRSP%2Fdjango-static-base/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DLRSP","download_url":"https://codeload.github.com/DLRSP/django-static-base/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DLRSP%2Fdjango-static-base/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270684744,"owners_count":24627869,"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","status":"online","status_checked_at":"2025-08-16T02:00:11.002Z","response_time":91,"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":"2024-11-08T23:26:13.616Z","updated_at":"2025-08-16T08:22:44.410Z","avatar_url":"https://github.com/DLRSP.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# django-static-base [![PyPi license](https://img.shields.io/pypi/l/django-static-base.svg)](https://pypi.python.org/pypi/django-static-base)\n\n[![PyPi status](https://img.shields.io/pypi/status/django-static-base.svg)](https://pypi.python.org/pypi/django-static-base)\n[![PyPi version](https://img.shields.io/pypi/v/django-static-base.svg)](https://pypi.python.org/pypi/django-static-base)\n[![PyPi python version](https://img.shields.io/pypi/pyversions/django-static-base.svg)](https://pypi.python.org/pypi/django-static-base)\n[![PyPi downloads](https://img.shields.io/pypi/dm/django-static-base.svg)](https://pypi.python.org/pypi/django-static-base)\n[![PyPi downloads](https://img.shields.io/pypi/dw/django-static-base.svg)](https://pypi.python.org/pypi/django-static-base)\n[![PyPi downloads](https://img.shields.io/pypi/dd/django-static-base.svg)](https://pypi.python.org/pypi/django-static-base)\n\n## GitHub ![GitHub release](https://img.shields.io/github/tag/DLRSP/django-static-base.svg) ![GitHub release](https://img.shields.io/github/release/DLRSP/django-static-base.svg)\n\n## Test [![codecov.io](https://codecov.io/github/DLRSP/django-static-base/coverage.svg?branch=main)](https://codecov.io/github/DLRSP/django-static-base?branch=main) [![pre-commit.ci status](https://results.pre-commit.ci/badge/github/DLRSP/django-static-base/main.svg)](https://results.pre-commit.ci/latest/github/DLRSP/django-static-base/main) [![gitthub.com](https://github.com/DLRSP/django-static-base/actions/workflows/ci.yaml/badge.svg)](https://github.com/DLRSP/django-static-base/actions/workflows/ci.yaml)\n\n## Check Demo Project\n* Check the demo repo on [GitHub](https://github.com/DLRSP/example/tree/django-static-base)\n\n## Requirements\n-   Python 3.8+ supported.\n-   Django 4.2+ supported.\n\n## Setup\n1. Install from **pip**:\n    ```shell\n    pip install django-static-base\n    ```\n\n2. Add `'static_base'` to your `INSTALLED_APPS` setting.\n\n    ``` python title=\"settings.py\"\n    INSTALLED_APPS = [\n        # ...other apps\n        \"static_base\"\n    ]\n    ```\n\n3. Add the following pre-requisites to your `base.html` template\n\n    ``` html title=\"base.html\"\n    \u003chtml\u003e\n    \u003chead\u003e\n    ...\n      \u003clink rel=\"stylesheet\" type=\"text/css\" href=\"{% static 'base/css/bootstrap.css' %}\"\u003e\n    ...\n    \u003c/head\u003e\n    \u003cbody\u003e\n    ...\n      \u003cscript type=\"text/javascript\" src=\"{% static 'base/js/jquery.min.js' %}\"\u003e\u003c/script\u003e\n      \u003cscript type=\"text/javascript\" src=\"{% static 'base/js/bootstrap.min.js' %}\"\u003e\u003c/script\u003e\n      \u003cscript type=\"text/javascript\" src=\"{% static 'base/js/plugins/lazysizes.min.js' %}\" async\u003e\u003c/script\u003e\n    ...\n      \u003cscript type=\"module\" src=\"{% static 'base/js/plugins/instantpage.min.js' %}\" defer\u003e\u003c/script\u003e\n    \u003c/body\u003e\n    \u003c/html\u003e\n    ```\n\n4. Add all your needed plugins or customization to your `base.html` template or sub-templates used by your project\n\n    ``` html title=\"base.html\"\n    \u003chtml\u003e\n    \u003chead\u003e\n    ...\n      \u003clink rel=\"stylesheet\" type=\"text/css\" href=\"{% static 'base/css/plugins/jquery.smartmenus.bootstrap-4.css' %}\"\u003e\n    ...\n      \u003clink rel=\"stylesheet\" type=\"text/css\" href=\"{% static 'base/css/style-btn.css' %}\"\u003e\n      \u003clink rel=\"stylesheet\" type=\"text/css\" href=\"{% static 'base/css/color/blue.css' %}\"\u003e\n    ...\n      \u003clink rel=\"stylesheet\" type=\"text/css\" href=\"{% static 'base/css/custom.css' %}\"\u003e\n    ...\n    \u003c/head\u003e\n    \u003cbody\u003e\n    ...\n      \u003cscript type=\"text/javascript\" src=\"{% static 'base/js/jquery.min.js' %}\"\u003e\u003c/script\u003e\n      \u003cscript type=\"text/javascript\" src=\"{% static 'base/js/bootstrap.min.js' %}\"\u003e\u003c/script\u003e\n    ...\n      \u003cscript type=\"module\" src=\"{% static 'base/js/plugins/instantpage.min.js' %}\" defer\u003e\u003c/script\u003e\n    \u003c/body\u003e\n    \u003c/html\u003e\n    ```\n\n## Run Example Project\n\n```shell\ngit clone --depth=50 --branch=django-static-base 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-static-base","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdlrsp%2Fdjango-static-base","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdlrsp%2Fdjango-static-base/lists"}