Django's application to serve up-to-date common static files (JQuery, Bootstrap, Plugins, ...) as "base" static directory
Project description
django-static-base
GitHub
Test
Check Demo Project
- Check the demo repo on GitHub
Requirements
- Python 3.8+ supported.
- Django 3.2+ supported.
Setup
- Install from pip:
pip install django-static-base
- Modify
settings.py
by adding the app toINSTALLED_APPS
:INSTALLED_APPS = [ # ... "static_base", # ... ]
- Finally, modify your project
urls.py
with handlers for all errors:# ...other imports... urlpatterns = [ # ...other urls... ]
- Execute Django's command
migrate
inside your project's root:python manage.py migrate Running migrations: Applying static_base.0001_initial... OK
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
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for django_static_base-0.1.1-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 45fd909e93b3a8cf48fccd9e0c69ec80870160c7ef82c2444cb26bddb2ac6d9d |
|
MD5 | f31558df98250c601d48c634d4f874f3 |
|
BLAKE2b-256 | 987324ecf76609192d48733f63df2dc2c76c9a8caeaeaca9246a9bda74ff0d50 |