Commit e7bff7b 1 parent e5268e8 commit e7bff7b Copy full SHA for e7bff7b
File tree 4 files changed +26
-0
lines changed
4 files changed +26
-0
lines changed Original file line number Diff line number Diff line change @@ -8,6 +8,8 @@ bump-my-version
8
8
# Debug tooling
9
9
django-debug-toolbar
10
10
django-extensions
11
+ django-silk
12
+ whitenoise
11
13
12
14
# Documentation
13
15
sphinx
Original file line number Diff line number Diff line change @@ -42,6 +42,8 @@ attrs==20.3.0
42
42
# -r requirements/ci.txt
43
43
# glom
44
44
# jsonschema
45
+ autopep8==2.3.2
46
+ # via django-silk
45
47
babel==2.16.0
46
48
# via
47
49
# -c requirements/ci.txt
@@ -206,6 +208,7 @@ django==4.2.19
206
208
# django-sendfile2
207
209
# django-sessionprofile
208
210
# django-setup-configuration
211
+ # django-silk
209
212
# django-simple-certmanager
210
213
# django-solo
211
214
# django-two-factor-auth
@@ -326,6 +329,8 @@ django-setup-configuration==0.7.1
326
329
# -c requirements/ci.txt
327
330
# -r requirements/ci.txt
328
331
# open-api-framework
332
+ django-silk==5.3.2
333
+ # via -r requirements/dev.in
329
334
django-simple-certmanager==1.4.1
330
335
# via
331
336
# -c requirements/ci.txt
@@ -448,6 +453,8 @@ glom==23.5.0
448
453
# -c requirements/ci.txt
449
454
# -r requirements/ci.txt
450
455
# mozilla-django-oidc-db
456
+ gprof2dot==2024.6.6
457
+ # via django-silk
451
458
h11==0.14.0
452
459
# via httpcore
453
460
httpcore==1.0.7
@@ -637,6 +644,7 @@ pycodestyle==2.12.1
637
644
# via
638
645
# -c requirements/ci.txt
639
646
# -r requirements/ci.txt
647
+ # autopep8
640
648
# flake8
641
649
pycparser==2.20
642
650
# via
@@ -881,6 +889,7 @@ sqlparse==0.5.0
881
889
# -r requirements/ci.txt
882
890
# django
883
891
# django-debug-toolbar
892
+ # django-silk
884
893
tblib==1.7.0
885
894
# via
886
895
# -c requirements/ci.txt
@@ -975,6 +984,8 @@ webtest==2.0.35
975
984
# django-webtest
976
985
wheel==0.42.0
977
986
# via pip-tools
987
+ whitenoise==6.9.0
988
+ # via -r requirements/dev.in
978
989
wrapt==1.14.1
979
990
# via
980
991
# -c requirements/ci.txt
Original file line number Diff line number Diff line change 102
102
r"django\.db\.models\.fields" ,
103
103
)
104
104
105
+ #
106
+ # DJANGO-SILK
107
+ #
108
+ if config ("PROFILE" , default = False , add_to_docs = False ):
109
+ INSTALLED_APPS += ["silk" ]
110
+ MIDDLEWARE = ["silk.middleware.SilkyMiddleware" ] + MIDDLEWARE
111
+ security_index = MIDDLEWARE .index ("django.middleware.security.SecurityMiddleware" )
112
+ MIDDLEWARE .insert (security_index + 1 , "whitenoise.middleware.WhiteNoiseMiddleware" )
113
+
105
114
if "test" in sys .argv :
106
115
NOTIFICATIONS_DISABLED = True
107
116
Original file line number Diff line number Diff line change 79
79
urlpatterns = [
80
80
path ("__debug__/" , include (debug_toolbar .urls )),
81
81
] + urlpatterns
82
+
83
+
84
+ if apps .is_installed ("silk" ):
85
+ urlpatterns += [path (r"silk/" , include ("silk.urls" , namespace = "silk" ))]
You can’t perform that action at this time.
0 commit comments