Skip to content

Commit

Permalink
Update example project for Django>2 (#391)
Browse files Browse the repository at this point in the history
  • Loading branch information
SebCorbin committed Apr 29, 2020
1 parent 3854665 commit 86933b6
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion example/cheeseshop/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
'constance.backends.database',
)

MIDDLEWARE_CLASSES = (
MIDDLEWARE = (
'django.middleware.common.CommonMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
'django.middleware.csrf.CsrfViewMiddleware',
Expand Down
4 changes: 2 additions & 2 deletions example/cheeseshop/urls.py
Original file line number Diff line number Diff line change
@@ -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:
Expand Down
4 changes: 2 additions & 2 deletions example/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
Django
python-memcached
Django>=2.2
python-memcached

0 comments on commit 86933b6

Please sign in to comment.