diff --git a/example/cheeseshop/settings.py b/example/cheeseshop/settings.py index d591dd2..ca03d99 100644 --- a/example/cheeseshop/settings.py +++ b/example/cheeseshop/settings.py @@ -47,7 +47,7 @@ INSTALLED_APPS = ( 'constance.backends.database', ) -MIDDLEWARE_CLASSES = ( +MIDDLEWARE = ( 'django.middleware.common.CommonMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', 'django.middleware.csrf.CsrfViewMiddleware', diff --git a/example/cheeseshop/urls.py b/example/cheeseshop/urls.py index 508dbac..5f7645d 100644 --- a/example/cheeseshop/urls.py +++ b/example/cheeseshop/urls.py @@ -1,11 +1,11 @@ -from django.conf.urls import include, url +from django.conf.urls import url from django.contrib.staticfiles.urls import staticfiles_urlpatterns from django.contrib import admin from django.conf import settings admin.autodiscover() urlpatterns = [ - url(r'^admin/', include(admin.site.urls)), + url(r'^admin/', admin.site.urls), ] if settings.DEBUG: diff --git a/example/requirements.txt b/example/requirements.txt index e06b7b8..69a82a7 100644 --- a/example/requirements.txt +++ b/example/requirements.txt @@ -1,2 +1,2 @@ -Django -python-memcached \ No newline at end of file +Django>=2.2 +python-memcached