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:
parent
3c042b58d3
commit
576da29f13
@ -11,11 +11,11 @@
|
|||||||
# License for the specific language governing permissions and limitations
|
# License for the specific language governing permissions and limitations
|
||||||
# under the License.
|
# under the License.
|
||||||
|
|
||||||
from django.conf.urls import defaults
|
from django.conf import urls
|
||||||
from django.views import generic
|
from django.views import generic
|
||||||
|
|
||||||
|
|
||||||
urlpatterns = defaults.patterns('', defaults.url(
|
urlpatterns = urls.patterns('', urls.url(
|
||||||
r'^$',
|
r'^$',
|
||||||
generic.TemplateView.as_view(template_name="infrastructure/qunit.html"),
|
generic.TemplateView.as_view(template_name="infrastructure/qunit.html"),
|
||||||
name='qunit_tests'))
|
name='qunit_tests'))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user