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.1.tar.gz (5.5 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.1-py2.py3-none-any.whl (5.5 MB view details)

Uploaded Python 2Python 3

File details

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

File metadata

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

File hashes

Hashes for django-static-base-0.1.1.tar.gz
Algorithm Hash digest
SHA256 734c50540914722b4da9951ad2cb84ecd7cf602c2fb903252fdfee8f0be3b4f7
MD5 0c0d2506e096e95b4496bfe38c9ce8f7
BLAKE2b-256 e7631e73a230d9ccfbdecdc3e35cbae2fba9d0d3e59d53c3524dfd711d678e91

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for django_static_base-0.1.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 45fd909e93b3a8cf48fccd9e0c69ec80870160c7ef82c2444cb26bddb2ac6d9d
MD5 f31558df98250c601d48c634d4f874f3
BLAKE2b-256 987324ecf76609192d48733f63df2dc2c76c9a8caeaeaca9246a9bda74ff0d50

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