[library-web] Upgrade code to run on a newer django release



commit f46acc66d305b924fb9d99e1ce83f171533aebc7
Author: Andrea Veri <averi redhat com>
Date:   Thu Feb 13 20:45:53 2020 +0100

    Upgrade code to run on a newer django release

 web/urls.py | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/web/urls.py b/web/urls.py
index 1c1638e..6a6a572 100644
--- a/web/urls.py
+++ b/web/urls.py
@@ -16,10 +16,10 @@
 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
 # 02110-1301  USA
 
-from django.conf.urls.defaults import *
+from django.conf.urls import url, include
 import api
 
-urlpatterns = patterns('',
+urlpatterns = [
     url(r'^lookup', api.lookup),
     url(r'^', api.redirect),
-)
+]


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]