Skip to content

Commit a62d6ca

Browse files
authored
Merge pull request #632 from loganharbour/django_5
Bump django to 5 and python 3.13
2 parents e4d5cfd + e4bd2cd commit a62d6ca

File tree

4 files changed

+30
-38
lines changed

4 files changed

+30
-38
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ ifeq ($(firstword $(MAKECMDGOALS)),$(filter $(firstword $(MAKECMDGOALS)), test c
99
endif
1010

1111
CIVET_TEST_JOBS ?= 12
12-
MAX_MISSING_LINES := 80
12+
MAX_MISSING_LINES := 81
1313

1414
py_files := $(shell git ls-files '*.py')
1515

ci/tests/SeleniumTester.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ class SeleniumTester(StaticLiveServerTestCase):
109109

110110
@classmethod
111111
def setUpClass(cls):
112-
cls.chomedriver_dir = None
112+
cls.chromedriver_dir = None
113113
cls.drivers = WebDriverList(
114114
cls.create_chrome_driver(),
115115
# The firefox driver doesn't seem to work properly anymore. Firefox 48, Selenium 0.9.0.

civet/settings.py

Lines changed: 7 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -42,25 +42,15 @@
4242
SECRET_KEY = '-85d^-^foncz90n+p7ap#irn1&$v*5%d!$u!w0m@w2v*m#&698'
4343

4444
# SECURITY WARNING: don't run with debug turned on in production!
45-
DEBUG = True
45+
DEBUG = False
4646

4747
# set to the hosts that urls will have in their names
4848
# In other words, the hosts that this server will accept connections for
4949
# Note that this is required when DEBUG = False
5050
# Ex: ['localhost', 'www.moosebuild.org', 'moosebuild.org']
5151
ALLOWED_HOSTS = []
5252

53-
SHOW_DEBUG_TOOLBAR = False
54-
55-
def show_debug_toolbar(request):
56-
return DEBUG and SHOW_DEBUG_TOOLBAR
57-
58-
# Make the debug toolbar get a local copy of jquery
59-
DEBUG_TOOLBAR_CONFIG = {"JQUERY_URL": "/static/third_party/jquery-2.1.4/jquery.min.js",
60-
'SHOW_TOOLBAR_CALLBACK': show_debug_toolbar
61-
}
62-
63-
INSTALLED_APPS = (
53+
INSTALLED_APPS = [
6454
'django.contrib.admin',
6555
'django.contrib.auth',
6656
'django.contrib.contenttypes',
@@ -69,11 +59,10 @@ def show_debug_toolbar(request):
6959
'django.contrib.staticfiles',
7060
'django.contrib.humanize',
7161
'ci',
72-
'debug_toolbar',
7362
'corsheaders',
7463
'django_extensions',
7564
'civet.apps.scheduleConfig',
76-
)
65+
]
7766

7867
MIDDLEWARE = [
7968
'django.contrib.sessions.middleware.SessionMiddleware',
@@ -84,9 +73,12 @@ def show_debug_toolbar(request):
8473
'django.contrib.messages.middleware.MessageMiddleware',
8574
'django.middleware.clickjacking.XFrameOptionsMiddleware',
8675
'django.middleware.security.SecurityMiddleware',
87-
'debug_toolbar.middleware.DebugToolbarMiddleware',
8876
]
8977

78+
if DEBUG:
79+
INSTALLED_APPS += ['debug_toolbar']
80+
MIDDLEWARE += ['debug_toolbar.middleware.DebugToolbarMiddleware']
81+
9082
ROOT_URLCONF = 'civet.urls'
9183

9284
TEMPLATES = [

requirements.txt

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,27 @@
1-
ansi2html==1.7.0
2-
chardet==4.0.0
1+
ansi2html==1.9.2
2+
chardet==5.2.0
33
chromedriver_autoinstaller==0.6.4
4-
coverage==6.4.1
5-
croniter>=1.3.5
4+
coverage==7.11.3
5+
croniter==6.0.0
66
DaemonLite==0.0.2
7-
Django==4.2.26
8-
django-cors-headers==3.12.0
9-
django-debug-toolbar==3.4.0
10-
django-extensions==3.1.5
7+
Django==5.2.8
8+
django-cors-headers==4.9.0
9+
django-debug-toolbar==6.1.0
10+
django-extensions==4.1
1111
django-sslserver==0.22
1212
funcsigs==1.0.2
13-
idna==3.7
14-
mock==4.0.3
15-
oauthlib==3.2.2
16-
pbr==5.9.0
13+
idna==3.11
14+
mock==5.2.0
15+
oauthlib==3.3.1
16+
pbr==7.0.3
1717
py-w3c==0.3.1
18-
pyflakes==2.4.0
19-
pytz==2022.1
20-
requests==2.32.4
21-
requests-oauthlib==1.3.1
22-
selenium==4.2.0
23-
six==1.16.0
24-
sqlparse==0.5.0
25-
tblib==1.7.0
18+
pyflakes==3.4.0
19+
pytz==2025.2
20+
requests==2.32.5
21+
requests-oauthlib==2.0.0
22+
selenium==4.38.0
23+
six==1.17.0
24+
sqlparse==0.5.3
25+
tblib==3.2.2
2626
typing==3.7.4.3
27-
urllib3==1.26.19
27+
urllib3==2.5.0

0 commit comments

Comments
 (0)