girasquid/django-static — comment on commit b80cf128417ff690c9d8c7e2c3e03a85577ba102
File: django_static/templatetags/django_static.py line 97
By peterbe:

Can you please change this to a getattr instead of the big try:except block. Reason being is that something else might raise an AttributeError by mistake and it gets confused with the AttributeError of fetching settings.DJANGO_STATIC_FILENAME_GENERATOR.

Please replace the try:except with:

```
filename_generator = getattr(settings, 'DJANGO_STATIC_FILENAME_GENERATOR', None)
if filename_generator:
return filename_generator

def default_filename_generator(apart, new_m_time):
...
return default_filename_generator
```

"default" is better than "old" because that's what it is. It's only "old" to you :)