Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

Django Staticsfiles Ignore Debug

Project Description

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

Release History

Release History

This version
History Node

0.1.0

Download Files

Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
staticsfiles_ignoredebug-0.1.0.tar.gz (17.3 kB) Copy SHA256 Checksum SHA256 Source Feb 13, 2014

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting