Skip to content

Commit

Permalink
Merge 68c43b4 into 9055766
Browse files Browse the repository at this point in the history
  • Loading branch information
rloomans committed Dec 29, 2023
2 parents 9055766 + 68c43b4 commit fa80764
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ dj-database-url==2.1.0
dj-static==0.0.6
django-admin-csvexport==2.2
django-csp==3.7
django-csp-reports==1.9.0
#django-csp-reports==1.9.0
crispy-bootstrap3==2022.1
django-crispy-forms==2.1
django-filter==23.5
Expand Down
6 changes: 3 additions & 3 deletions teamtemp/settings/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@
'rest_framework',
'crispy_forms',
'crispy_bootstrap3',
'cspreports',
#'cspreports',
'csvexport',
'drf_spectacular',
'drf_spectacular_sidecar',
Expand Down Expand Up @@ -258,8 +258,8 @@
'blob:',
)
CSP_EXCLUDE_URL_PREFIXES = ("/djadmin",)
CSP_REPORT_URI = reverse_lazy('report_csp')
CSP_REPORTS_FILTER_FUNCTION = "cspreports.filters.filter_browser_extensions"
#CSP_REPORT_URI = reverse_lazy('report_csp')
#CSP_REPORTS_FILTER_FUNCTION = "cspreports.filters.filter_browser_extensions"

REST_FRAMEWORK = {
# Use Django's standard `django.contrib.auth` permissions,
Expand Down
4 changes: 2 additions & 2 deletions teamtemp/urls.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import cspreports.urls
#import cspreports.urls
from django.conf import settings
from django.urls import include, path, re_path
from django.contrib import admin as djadmin
Expand Down Expand Up @@ -82,7 +82,7 @@
re_path(r'^api/', include(router.urls)),
re_path(r'^api-auth/', include('rest_framework.urls', namespace='rest_framework')),
re_path(r'^docs/', RedirectView.as_view(url='/api/schema/swagger-ui', permanent=False), name='docs'),
re_path(r'^csp/', include('cspreports.urls')),
#re_path(r'^csp/', include('cspreports.urls')),
path('api/schema/', SpectacularAPIView.as_view(), name='schema'),
path('api/schema/swagger-ui/', SpectacularSwaggerView.as_view(url_name='schema'), name='swagger-ui'),
path('api/schema/redoc/', SpectacularRedocView.as_view(url_name='schema'), name='redoc'),
Expand Down

0 comments on commit fa80764

Please sign in to comment.