From: Jason Stephenson Date: Mon, 5 Mar 2018 19:20:18 +0000 (-0500) Subject: Fix ImportError: No module named defaults X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=8ff42ea354d25a83b1705c95847e8293741a8dc5;p=syrup%2Fmasslnc.git Fix ImportError: No module named defaults The module django.conf.urls.defaults was removed in Django 1.6. The functions are now available from django.conf.urls. Signed-off-by: Jason Stephenson --- diff --git a/conifer/syrup/urls.py b/conifer/syrup/urls.py index f78e138..b06ccad 100644 --- a/conifer/syrup/urls.py +++ b/conifer/syrup/urls.py @@ -1,4 +1,4 @@ -from django.conf.urls.defaults import * +from django.conf.urls import * # I'm not ready to break items out into their own urls.py, but I do # want to cut down on the common boilerplate in the urlpatterns below. diff --git a/conifer/urls.py b/conifer/urls.py index 833e8ec..3648dd2 100644 --- a/conifer/urls.py +++ b/conifer/urls.py @@ -1,4 +1,4 @@ -from django.conf.urls.defaults import * +from django.conf.urls import * from django.conf import settings import django import os