django-static-base 
GitHub

Test

Check Demo Project
- Check the demo repo on GitHub
Requirements
- Python 3.9+ supported.
- Django 4.2+ supported.
Setup
-
Install from pip:
pip install django-static-base
-
Add
'static_base'to yourINSTALLED_APPSsetting.INSTALLED_APPS = [ # ...other apps "static_base" ]
-
Add the following pre-requisites to your
base.htmltemplate<html> <head> ... <link rel="stylesheet" type="text/css" href="{% static 'base/css/bootstrap.css' %}"> ... </head> <body> ... <script type="text/javascript" src="{% static 'base/js/jquery.min.js' %}"></script> <script type="text/javascript" src="{% static 'base/js/bootstrap.min.js' %}"></script> <script type="text/javascript" src="{% static 'base/js/plugins/lazysizes.min.js' %}" async></script> ... <script type="module" src="{% static 'base/js/plugins/instantpage.min.js' %}" defer></script> </body> </html>
-
Add all your needed plugins or customization to your
base.htmltemplate or sub-templates used by your project<html> <head> ... <link rel="stylesheet" type="text/css" href="{% static 'base/css/plugins/jquery.smartmenus.bootstrap-4.css' %}"> ... <link rel="stylesheet" type="text/css" href="{% static 'base/css/style-btn.css' %}"> <link rel="stylesheet" type="text/css" href="{% static 'base/css/color/blue.css' %}"> ... <link rel="stylesheet" type="text/css" href="{% static 'base/css/custom.css' %}"> ... </head> <body> ... <script type="text/javascript" src="{% static 'base/js/jquery.min.js' %}"></script> <script type="text/javascript" src="{% static 'base/js/bootstrap.min.js' %}"></script> ... <script type="module" src="{% static 'base/js/plugins/instantpage.min.js' %}" defer></script> </body> </html>
-
Optional — Material Dashboard (Creative Tim v1.1.1). Same layout as Bootstrap: theme under
base/css+base/js; helpers underbase/js/plugins/.<link rel="stylesheet" href="{% static 'base/css/bootstrap.min.css' %}"> <link rel="stylesheet" href="{% static 'base/css/material-dashboard.css' %}"> <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto:300,400,500,700|Material+Icons"> <script src="{% static 'base/js/jquery.min.js' %}"></script> <script src="{% static 'base/js/bootstrap.min.js' %}"></script> <script src="{% static 'base/js/material.min.js' %}"></script> <script src="{% static 'base/js/plugins/chartist.min.js' %}"></script> <script src="{% static 'base/js/plugins/bootstrap-notify.js' %}"></script> <script src="{% static 'base/js/material-dashboard.js' %}"></script>
Run Example Project
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
Metadata
Release files for django-static-base 0.5.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| django_static_base-0.5.4.tar.gz | 5.6 MB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| django_static_base-0.5.4-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 11.3 MB
Release files / django_static_base-0.5.4.tar.gz
| Download URL | django_static_base-0.5.4.tar.gz |
|---|---|
| Size | 5.6 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
201f215b8558d19155359631842e465ebb5db60a2fb6a27fd50b4a81bf863e59
|
|
BLAKE2b-256 checksum How to use checksums |
ce01b9229778389c63cc0dbbb973b5109cbbfa573507a3f1b5593b16a67b83ff
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Release files / django_static_base-0.5.4-py3-none-any.whl
| Download URL | django_static_base-0.5.4-py3-none-any.whl |
|---|---|
| Size | 5.7 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d317e346d06b9336a183674ccdb6c8ff24330f3c45dcf1d3c92452deb119db26
|
|
BLAKE2b-256 checksum How to use checksums |
bfa0430d09546e41f5a9e8fdd8bf43e6392eaf552dc3b721c21d341ea25ee883
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|