diff --git a/VIPSWeb/local_settings_sample.py b/VIPSWeb/local_settings_sample.py
index 1e188004c735e83b1e649f4ef28815885daa5e34..33cfd8ade787b1e0cffbc26dcdfa29eb1fed5a02 100755
--- a/VIPSWeb/local_settings_sample.py
+++ b/VIPSWeb/local_settings_sample.py
@@ -92,13 +92,13 @@ DATABASES = {
 }
 
 # Caching with memcached
-#CACHES = {
-#    'default': {
-#        'BACKEND': 'django.core.cache.backends.memcached.MemcachedCache',
-#        'LOCATION': 'unix:/tmp/memcached.sock',
-#        'LOCATION': '127.0.0.1:11211',
-#    }
-#}
+# https://docs.djangoproject.com/en/3.2/topics/cache/
+CACHES = {
+    'default': {
+        'BACKEND': 'django.core.cache.backends.memcached.PyMemcacheCache',
+        'LOCATION': '127.0.0.1:11211',
+    }
+}
 
 # Site name - appears in header of all pages. HTML is allowed
 SITE_NAME = "Example site title"
diff --git a/VIPSWeb/settings.py b/VIPSWeb/settings.py
index ed6c09f7dee2e1c964ec15a7203f874a7c32f9b6..dfb0c4516ae1a71b33474aaa904f343c6e7dafce 100755
--- a/VIPSWeb/settings.py
+++ b/VIPSWeb/settings.py
@@ -31,6 +31,9 @@ LOCALE_PATHS = (
     os.path.join(SITE_ROOT, 'locale'),
 )
 
+# New in Django 3.2
+# https://docs.djangoproject.com/en/4.1/releases/3.2/#what-s-new-in-django-3-2
+DEFAULT_AUTO_FIELD = 'django.db.models.AutoField'
 
 SITE_ID = 1
 
diff --git a/requirements.txt b/requirements.txt
index daa73cc54fc3dc48a307d56699b0a1bafda54b8b..99a24132ec388644d07a1f8b28de61092e1a99ff 100755
--- a/requirements.txt
+++ b/requirements.txt
@@ -1,5 +1,5 @@
 #
-# Copyright (c) 2016 NIBIO <http://www.nibio.no/>. 
+# Copyright (c) 2023 NIBIO <http://www.nibio.no/>. 
 # 
 # This file is part of VIPSWeb.
 # VIPSWeb is free software: you can redistribute it and/or modify
@@ -18,11 +18,12 @@
 
 # Please add requirements here
 # Read docs for how this works: http://www.pip-installer.org/en/latest/cookbook.html
-Django==3.1.3
+Django==3.2.16
 Pillow
 requests==2.25.0
 django-tinymce==2.8.0
 python-dateutil==2.8.1
 django-extensions
 selenium
-python-memcached
+#python-memcached
+pymemcache