Django Staticsfiles Ignore Debug
Serve static files below a given point in the directory structure or from locations inferred from the staticfiles finders in Django projects.
To use, put a URL pattern such as:
(r'^%s(?P<path>.*)$' % re.escape(settings.STATIC_URL.lstrip('/')), \
'staticsfiles_ignoredebug.views.serve')
in your URLconf.
It uses the django.views.static view to serve the found files.
At difference from django.contrib.staticfiles.urls.staticfiles_urlpatterns (https://docs.djangoproject.com/en/1.4/ref/contrib/staticfiles/#django.contrib.staticfiles.templatetags.staticfiles.django.contrib.staticfiles.urls.staticfiles_urlpatterns), this function allow serve the static content in non DEBUG mode.
If DEBUG=False and STATICFILES_IGNORE_DEBUG=False a ImproperlyConfigured exception is raised.
DISCLAIMER: Using this method is inefficient and insecure. Do not use this in a production setting. Use this only for development and testing environment with DEBUG=False.
About
The project staticsfiles_ignoredebug was developed by Mariano Ruiz on Enterprise Objects Consulting.
This sources are available in https://github.com/eoconsulting/django-staticsfiles-ignoredebug
License: LGPL-3 (C) 2013
Metadata
Release files for staticsfiles_ignoredebug 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| staticsfiles_ignoredebug-0.1.0.tar.gz | 17.3 kB | Without provenance | Details for staticsfiles_ignoredebug-0.1.0.tar.gz |
Release files / staticsfiles_ignoredebug-0.1.0.tar.gz
| Download URL | staticsfiles_ignoredebug-0.1.0.tar.gz |
|---|---|
| Size | 17.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
507ccc6d18642b81100649abc453b641237f5d2c876fec091750349429d936e0
|
|
BLAKE2b-256 checksum How to use checksums |
6e8c6499fadb572bd96793ec49e4d3332b786245c7100784cc8a84ea73630477
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for staticsfiles_ignoredebug 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.