Fix allowed file extension checks (Bug#12)

* python-django.el:
(python-django-util-file-name-extension): New function.
(python-django-ui-tree-dir-widget-expand): Use it.