Resolved two Django 1.5 compatibility issues: adminmedia and url

In Django 1.5, they removed the obsolete adminmedia tag library
and fixed the syntax of the url template tag.

Please note that my changes will break backward compatibility to
some extremely old Django versions.