https://github.com/dlrsp/django-static-base
Django application to serve up-to-date common static files (JQuery, Bootstrap, Plugins, ...) as "base" static directory
https://github.com/dlrsp/django-static-base
Last synced: 11 months ago
JSON representation
Django application to serve up-to-date common static files (JQuery, Bootstrap, Plugins, ...) as "base" static directory
- Host: GitHub
- URL: https://github.com/dlrsp/django-static-base
- Owner: DLRSP
- License: mit
- Created: 2023-10-22T13:58:18.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2025-04-11T08:09:51.000Z (about 1 year ago)
- Last Synced: 2025-07-02T20:24:36.406Z (about 1 year ago)
- Language: JavaScript
- Homepage: https://dlrsp.github.io/django-static-base/
- Size: 7.34 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Code of conduct: .github/CODE_OF_CONDUCT.md
- Codeowners: CODEOWNERS
- Security: .github/SECURITY.md
Awesome Lists containing this project
README
# django-static-base [](https://pypi.python.org/pypi/django-static-base)
[](https://pypi.python.org/pypi/django-static-base)
[](https://pypi.python.org/pypi/django-static-base)
[](https://pypi.python.org/pypi/django-static-base)
[](https://pypi.python.org/pypi/django-static-base)
[](https://pypi.python.org/pypi/django-static-base)
[](https://pypi.python.org/pypi/django-static-base)
## GitHub  
## Test [](https://codecov.io/github/DLRSP/django-static-base?branch=main) [](https://results.pre-commit.ci/latest/github/DLRSP/django-static-base/main) [](https://github.com/DLRSP/django-static-base/actions/workflows/ci.yaml)
## Check Demo Project
* Check the demo repo on [GitHub](https://github.com/DLRSP/example/tree/django-static-base)
## Requirements
- Python 3.8+ supported.
- Django 4.2+ supported.
## Setup
1. Install from **pip**:
```shell
pip install django-static-base
```
2. Add `'static_base'` to your `INSTALLED_APPS` setting.
``` python title="settings.py"
INSTALLED_APPS = [
# ...other apps
"static_base"
]
```
3. Add the following pre-requisites to your `base.html` template
``` html title="base.html"
...
...
...
...
```
4. Add all your needed plugins or customization to your `base.html` template or sub-templates used by your project
``` html title="base.html"
...
...
...
...
...
...
```
## Run Example Project
```shell
git clone --depth=50 --branch=django-static-base https://github.com/DLRSP/example.git DLRSP/example
cd DLRSP/example
python manage.py runserver
```
Now browser the app @ http://127.0.0.1:8000