diff --git a/demo/karate/urls.py b/demo/karate/urls.py index c63747a..0967850 100644 --- a/demo/karate/urls.py +++ b/demo/karate/urls.py @@ -1,4 +1,4 @@ -from django.conf.urls import url, include +from django.urls import re_path as url, include from django.views.generic import TemplateView from karate import views diff --git a/demo/settings.py b/demo/settings.py index 7754cab..bf8e070 100644 --- a/demo/settings.py +++ b/demo/settings.py @@ -15,6 +15,7 @@ os.path.abspath('..'), # relative location of swingtime app ]) +DEFAULT_AUTO_FIELD = 'django.db.models.AutoField' DEBUG = True DATABASES = {'default': { 'ENGINE': 'django.db.backends.sqlite3', @@ -40,6 +41,7 @@ ), 'context_processors': ( 'django.template.context_processors.debug', + 'django.template.context_processors.request', 'django.contrib.auth.context_processors.auth', 'django.contrib.messages.context_processors.messages', 'swingtime.context_processors.current_datetime',