Skip to content
Commits on Feb 4, 2016
  1. Merge pull request #46 from Roadmaster/400-on-malformed-url

    committed
    Pass all malformed requests to Django.
  2. Merge pull request #47 from agriffis/original-static

    committed
    Switch back to original static lib, since it supports Python 3 now. Fixes #29
Commits on Jan 2, 2016
  1. @agriffis
Commits on Dec 2, 2015
  1. @Roadmaster

    Pass all malformed requests to Django.

    Roadmaster committed
    If get_path_info raises a UnicodeDecodeError, it means the URL
    was malformed. Django usually handles this with a 400 Bad Request
    response. If dj_static is in use, it will instead choke on the
    exception, generating a 500 response.
    
    This change makes it so that, if dj_static sees the UnicodeDecodeError,
    it will just give up and pass it to Django to handle. We then rely on
    Django's behavior (which as-is, will quickly enter the fail path and
    return the 400) to handle this malformed request.
    
    Django's behavior seems correct per
    https://code.djangoproject.com/ticket/25623?cversion=0&cnum_hist=2
Commits on Jul 11, 2014
  1. Merge pull request #26 from agriffis/allow-baseurl-override

    committed
    Allow base_url to be overridden
Commits on Jun 23, 2014
  1. Merge pull request #34 from stefanw/django1.7

    committed
    Add Django 1.7 support
Commits on Jun 20, 2014
  1. @stefanw

    Add Django 1.7 support

    stefanw committed
Commits on Jun 12, 2014
  1. @agriffis

    Allow base_url to be overridden

    agriffis committed
  2. Merge pull request #32 from treyhunner/python3-classifier-trove

    committed
    Add Python 3 classifier in setup.py
Commits on Jun 9, 2014
  1. Merge pull request #33 from gone/master

    committed
    Added an ignore debug flag
Commits on Jun 7, 2014
  1. @gone

    adding ignore debug flag

    gone committed
Commits on May 9, 2014
  1. @treyhunner
Commits on Jan 30, 2014
  1. Merge pull request #24 from andrewsg/master

    committed
    try/except based compatibility with Django 1.7 StaticFilesHandler
Commits on Jan 21, 2014
  1. @andrewsg
Commits on Jan 9, 2014
  1. Merge pull request #20 from kermit666/static3

    committed
    use static3, a Python 3 fork of static
  2. @metakermit
Commits on Jan 7, 2014
  1. Merge pull request #19 from goldibex/patch-1

    committed
    Properly invoke StaticFilesHandler
  2. Merge branch 'feature/django-1.4-compat' of git://github.com/wnh/dj-s…

    committed
    …tatic into wnh-feature/django-1.4-compat
    
    Conflicts:
    	dj_static.py
  3. Merge pull request #17 from marianitadn/master

    committed
    Update version to be able to import MediaCling
  4. Merge pull request #15 from gciding/master

    committed
    Make compatible with Django Dev (1.7+)
Commits on Dec 11, 2013
  1. @goldibex

    Properly invoke StaticFilesHandler

    goldibex committed
    Currently dj-static uses an inappropriate signature for creating a new StaticFilesHandler, causing it to crash out with the following error: 
    
    ```
    [ERROR] Error handling request
    Traceback (most recent call last):
       File "/Users/goldibex/Development/casetext/casetext/venv/lib/python2.7/site-packages/gunicorn/workers/sync.py", line 126, in handle_request
        respiter = self.wsgi(environ, resp.start_response)
       File "/Users/goldibex/Development/casetext/casetext/venv/lib/python2.7/site-packages/dj_static.py", line 67, in __call__
         return self.debug_cling(environ, start_response)
       File "/Users/goldibex/Development/casetext/casetext/venv/lib/python2.7/site-packages/django/contrib/staticfiles/handlers.py", line 72, in __call__
         return self.application(environ, start_response)
     TypeError: 'str' object is not callable```
    
    This patch corrects that.
Commits on Nov 9, 2013
  1. @maria
Commits on Oct 3, 2013
  1. @gciding

    Make compatible with Django Dev (1.7+)

    gciding committed
    `get_path_info` was moved from `django.core.handlers.base` to `django.core.handlers.wsgi` in commit 636860f.  See django/django@636860f
Commits on Sep 30, 2013
  1. Merge pull request #14 from wking/update-static-url

    committed
    README.rst: Update Static URL (point to PyPI)
Commits on Sep 20, 2013
  1. @wking

    README.rst: Update Static URL (point to PyPI)

    wking committed
      $ wget -S http://lukearno.com/projects/static/
      ...
      HTTP request sent, awaiting response...
        HTTP/1.1 404 Not Found
        ...
      2013-09-20 07:53:36 ERROR 404: Not Found.
    
    PyPI still points to lukearno.com as the home page, but we can expect
    the PyPI URL to age better.
Commits on Sep 6, 2013
  1. @wnh

    Removed dependency on six

    wnh committed
Commits on Aug 5, 2013
  1. Merge pull request #7 from axelmagn/master

    committed
    Bugfix Cling._transpose_environ and MediaCling.debug_cling
Commits on Jul 30, 2013
  1. @axelmagn

    Bugfix MediaCling debug_cling attribute.

    axelmagn committed
    MediaCling's method declaration of debug_cling was insufficient to override the
    instance attribute of the same name.  Replaced with explicit declaration.
  2. @axelmagn

    Bugfix (aka accidentally a tuple):

    axelmagn committed
        * _transpose_environ treated base_url as a string when it was a tuple.
          By accident, len('/static/') - 1 == len(base_url) + 1 == 7. Breaks for a
          url of any other length.
Commits on Jul 16, 2013
  1. @tinnet

    depend on six in setup.py

    tinnet committed
  2. @tinnet
Commits on Jul 15, 2013
  1. Merge pull request #2 from jezdez/master

    committed
    Add MediaCling
  2. @jezdez

    Fixed the transposing.

    jezdez committed
  3. @jezdez
  4. Update README.rst

    committed
Something went wrong with that request. Please try again.