Import url methods from their new (Django 1.4) location with a fallback for 1.3. Fixes deprecation warning.