Skip to main content

Django's application to serve up-to-date common static files (JQuery, Bootstrap, Plugins, ...) as "base" static directory

Project description

django-static-base PyPi license

PyPi status PyPi version PyPi python version PyPi downloads PyPi downloads PyPi downloads

GitHub GitHub release GitHub release

Test codecov.io pre-commit.ci status gitthub.com

Check Demo Project

  • Check the demo repo on GitHub

Requirements

  • Python 3.8+ supported.
  • Django 3.2+ supported.

Setup

  1. Install from pip:
    pip install django-static-base
    
  2. Modify settings.py by adding the app to INSTALLED_APPS:
    INSTALLED_APPS = [
        # ...
        "static_base",
        # ...
    ]
    
  3. Finally, modify your project urls.py with handlers for all errors:
    # ...other imports...
    
    urlpatterns = [
        # ...other urls...
    ]
    
  4. 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

django-static-base-0.1.0.tar.gz (5.7 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

django_static_base-0.1.0-py2.py3-none-any.whl (5.8 MB view details)

Uploaded Python 2Python 3

File details

Details for the file django-static-base-0.1.0.tar.gz.

File metadata

  • Download URL: django-static-base-0.1.0.tar.gz
  • Upload date:
  • Size: 5.7 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.10

File hashes

Hashes for django-static-base-0.1.0.tar.gz
Algorithm Hash digest
SHA256 e9126969e7b6423482d15e8a001a44e9084432315e75c676c401c014dfe3c482
MD5 ddcd2921ea9a292d3ec8adab7ba871a1
BLAKE2b-256 71f65d32fcc23a0960c30a1d5e8f0cecc4d2d68e978cb5c34bcc3f253c1e6ddf

See more details on using hashes here.

File details

Details for the file django_static_base-0.1.0-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for django_static_base-0.1.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 65407732bd8d20423b1da235376996d0d2262a0a5b1e0ef961bfdf74bcd22de1
MD5 38c3595748fc66ae713c98f6e90f5d2b
BLAKE2b-256 3f5e02a2238cf007d12f6f5b6d1ad604cb29f80a7ff7b43f9e2658904dfa398a

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page