Fix deprecated use of django.conf.urls.defaults

Since Django 1.4, django.conf.urls.defaults is deprecated, and it
has been completely removed form Django 1.6. This patch fixes the
use of this API.

Change-Id: Ic8a3937e1d16d071650cd9b5fbf9737d06b3ad62
Close-bug: #1293712
This commit is contained in:
Thomas Goirand 2014-03-18 01:57:10 +08:00
parent 3c042b58d3
commit 576da29f13

View File

@ -11,11 +11,11 @@
# License for the specific language governing permissions and limitations
# under the License.
from django.conf.urls import defaults
from django.conf import urls
from django.views import generic
urlpatterns = defaults.patterns('', defaults.url(
urlpatterns = urls.patterns('', urls.url(
r'^$',
generic.TemplateView.as_view(template_name="infrastructure/qunit.html"),
name='qunit_tests'))