diff --git a/core/TESTS/test_imports.py b/core/TESTS/test_imports.py index 570c1fb..5474c63 100644 --- a/core/TESTS/test_imports.py +++ b/core/TESTS/test_imports.py @@ -16,7 +16,7 @@ But paths like this: which rely on database resolution will fail unless a fixture has been set up for them. -https://docs.djangoproject.com/en/3.2/topics/testing/tools/ +https://docs.djangoproject.com/en/dev/topics/testing/tools/ """ import re import subprocess diff --git a/core/TESTS/tests.py b/core/TESTS/tests.py index 3f60394..8f49a40 100644 --- a/core/TESTS/tests.py +++ b/core/TESTS/tests.py @@ -16,7 +16,7 @@ But paths like this: which rely on database resolution will fail unless a fixture has been set up for them. -https://docs.djangoproject.com/en/3.0/topics/testing/tools/ +https://docs.djangoproject.com/en/dev/topics/testing/tools/ """ diff --git a/core/forms.py b/core/forms.py index b20354f..b0b84c6 100644 --- a/core/forms.py +++ b/core/forms.py @@ -160,7 +160,7 @@ class EntranceForm(ModelForm): # This next line is called from the templates/edit_cave2.html template. # This is sufficient to create an entire entry for for the cave fields automatically # http://localhost:8000/cave/new/ -# using django built-in Deep Magic. https://docs.djangoproject.com/en/3.2/topics/forms/modelforms/ +# using django built-in Deep Magic. https://docs.djangoproject.com/en/dev/topics/forms/modelforms/ # for forms which map directly onto a Django Model CaveAndEntranceFormSet = modelformset_factory(CaveAndEntrance, exclude=("cave",)) diff --git a/core/management/commands/dummycmd.py b/core/management/commands/dummycmd.py index 1340beb..6424260 100644 --- a/core/management/commands/dummycmd.py +++ b/core/management/commands/dummycmd.py @@ -12,7 +12,7 @@ https://www.mattlayman.com/understand-django/command-apps/ https://www.geeksforgeeks.org/custom-django-management-commands/ Django docs: -https://docs.djangoproject.com/en/3.2/howto/custom-management-commands/ +https://docs.djangoproject.com/en/dev/howto/custom-management-commands/ We might use this mechanism to replace/enhance the folk, wallets and any cron jobs or other standalone scripts. diff --git a/core/models/caves.py b/core/models/caves.py index 1ed1605..dffd670 100644 --- a/core/models/caves.py +++ b/core/models/caves.py @@ -161,7 +161,7 @@ class Cave(TroggleModel): # qms = self.qm_set.all().order_by('expoyear', 'block__date') qms = QM.objects.filter(cave=self).order_by( "expoyear", "block__date" - ) # a QuerySet, see https://docs.djangoproject.com/en/4.0/ref/models/querysets/#order-by + ) # a QuerySet, see https://docs.djangoproject.com/en/dev/ref/models/querysets/#order-by return qms # a QuerySet def kat_area(self): diff --git a/core/views/scans.py b/core/views/scans.py index f0353b9..dae372a 100644 --- a/core/views/scans.py +++ b/core/views/scans.py @@ -288,7 +288,7 @@ def scansingle(request, path, file): def allscans(request): """Returns all the wallets in the system, we would like to use - the Django queryset SQL optimisation https://docs.djangoproject.com/en/3.2/ref/models/querysets/#prefetch-related + the Django queryset SQL optimisation https://docs.djangoproject.com/en/dev/ref/models/querysets/#prefetch-related to get the related singlescan and survexblock objects but that requires rewriting this to do the query on those, not on the wallets """ diff --git a/parsers/logbooks.py b/parsers/logbooks.py index 6afd620..47dd9ba 100644 --- a/parsers/logbooks.py +++ b/parsers/logbooks.py @@ -39,7 +39,7 @@ todo = """ file_in = open(logbookfile,'rb') txt = file_in.read().decode("latin1") -- use Fixtures https://docs.djangoproject.com/en/4.1/ref/django-admin/#django-admin-loaddata to cache +- use Fixtures https://docs.djangoproject.com/en/dev/ref/django-admin/#django-admin-loaddata to cache data for old logbooks? Not worth it.. """ MAX_LOGBOOK_ENTRY_TITLE_LENGTH = 200 diff --git a/parsers/survex.py b/parsers/survex.py index 91ce00a..8f75d65 100644 --- a/parsers/survex.py +++ b/parsers/survex.py @@ -2091,7 +2091,7 @@ def LoadSurvexBlocks(): # why does this increase memory use by 20 MB ?! # We have foreign keys, Django needs to load the related objects # in order to resolve how the relation should handle the deletion: - # https://docs.djangoproject.com/en/3.2/ref/models/fields/#django.db.models.ForeignKey.on_delete + # https://docs.djangoproject.com/en/dev/ref/models/fields/#django.db.models.ForeignKey.on_delete SurvexBlock.objects.all().delete() SurvexFile.objects.all().delete() SurvexDirectory.objects.all().delete() diff --git a/settings.py b/settings.py index d21d396..938c024 100644 --- a/settings.py +++ b/settings.py @@ -26,7 +26,7 @@ GIT = "git" # command for running git # Note that this builds upon the django system installed # global settings in # django/conf/global_settings.py which is automatically loaded first. -# read https://docs.djangoproject.com/en/3.0/topics/settings/ +# read https://docs.djangoproject.com/en/dev/topics/settings/ # Build paths inside the project like this: os.path.join(BASE_DIR, ...) # BASE_DIR = os.path.dirname(os.path.dirname(__file__)) @@ -104,9 +104,9 @@ INSTALLED_APPS = ( FORM_RENDERER = "django.forms.renderers.TemplatesSetting" # Required to customise widget templates -# See the recommended order of these in https://docs.djangoproject.com/en/2.2/ref/middleware/ +# See the recommended order of these in https://docs.djangoproject.com/en/dev/ref/middleware/ # Note that this is a radically different onion architecture from earlier versions though it looks the same, -# see https://docs.djangoproject.com/en/2.0/topics/http/middleware/#upgrading-pre-django-1-10-style-middleware +# see https://docs.djangoproject.com/en/dev/topics/http/middleware/#upgrading-pre-django-1-10-style-middleware # Seriously, read this: https://www.webforefront.com/django/middlewaredjango.html which is MUCH BETTER than the docs MIDDLEWARE = [ #'django.middleware.security.SecurityMiddleware', # SECURE_SSL_REDIRECT and SECURE_SSL_HOST # we don't use this diff --git a/templates/manywallets.html b/templates/manywallets.html index bfb2575..55ed304 100644 --- a/templates/manywallets.html +++ b/templates/manywallets.html @@ -25,7 +25,7 @@ otherwise they come from *ref statements in survex files as of the most recent d {% endfor %}
Scans folder | Files | Survex blocks | Cave |
---|