*: Switch consumers over to Django 5.2 Django 4.2 reached its End-of-Life on 7th April 2026 and Django 5.2 is the new LTS (= Long Term Support) release which will be supported until April 2028. * Switch most ports that use www/py-django42 to www/py-django52. * Where necessary, remove PORTSCOUT, which is no longer needed because an update to a newer version that no longer supports Django 4.2 should now be possible. * Bump PORTREVISION due dependency change where necessary. PR: 291707 Reviewed by: sunpoet (python) Differential Revision: https://reviews.freebsd.org/D56966ce59801b72
Port details
www/py-django-csp 4.0_1
Adds Content-Security-Policy headers to Django
Port info
- Maintainer
- kai@FreeBSD.org
- Packages
- latest: 4.0_1
- Upstream
- up to date
- Last update
- to 4.0_1 · ce59801b72
- Quarterly
- 2026Q4: 4.0_1
- Formerly
- www/py-dj22-django_csp until 2020-06-10
- WWW
- https://github.com/mozilla/django-csp
- Links
- cgit · VuXML
Install
- Package
# pkg install py312-django-cspinstalls 4.0_1 fromlatest; fromquarterly(2026Q4) 4.0_1- Port
# cd /usr/ports/www/py-django-csp && make install clean# make -C /usr/ports/www/py-django-csp config # change options first
- Size
- 54 KiB download · 283 KiB installed
- Depends on
- devel/py-Jinja2 3.1.6, lang/python312 3.12.15, www/py-django52 5.2.18
- License
- BSD3CLAUSE
- Options
- 1 of 1 on in the package: JINJA2
Packages by version and architecture
latest
| FreeBSD version | amd64 | aarch64 | i386 |
|---|---|---|---|
| FreeBSD 16 | 4.0_1 | 4.0_1 | – |
| FreeBSD 15 | 4.0_1 | 4.0_1 | – |
| FreeBSD 14 | 4.0_1 | 4.0_1 | 4.0_1 |
quarterly (2026Q4)
| FreeBSD version | amd64 | aarch64 | i386 |
|---|---|---|---|
| FreeBSD 15 | 4.0_1 | 4.0_1 | – |
| FreeBSD 14 | 4.0_1 | 4.0_1 | 4.0_1 |
version as in the ports tree (latest) or the most common one (quarterly) · different version · ✗ not built · – no packages for this platform. Package sets that have not been rebuilt for 60 days are left out.
Unaddressed and VuXML only (0)
No unaddressed CVE and nothing reported by
pkg audit for the packaged version 4.0_1.Fixed (0)
No VuXML entries for this package.
Problem reports (0) · open in Bugzilla, most recently changed first
None.
Commits (16)
www/py-django-csp: Update to 4.0 Changelog: https://github.com/mozilla/django-csp/releases/tag/v4.03477d7a00e
*: Switch consumers over to Django 4.2 Django 3.2 reached its End-of-Life on 1st April 2024 and Django 4.2 is the new LTS (= Long Term Support) release which will be supported until April 2026. * Switch most ports that use www/py-django32 to www/py-django42. * Ports that are not compatible with Django 3.2 have already been set with an expiration date were not taken into account. * Bump PORTREVISION due dependency change where necessary. PR: 276319 Reviewed by: dvl, grembo, ultima Approved by: bofh (implicit), dvl, grembo, Kevin Golding, sunpoet, ultima, maintainer timeout (remaining maintainers) Differential Revision: https://reviews.freebsd.org/D44637680c68fd4d
www/py-django-csp: Update to 3.8 * Switch to the PEP517 build framework. Changelog: https://github.com/mozilla/django-csp/blob/3.8/CHANGES6579571453
all: remove explicit versions in USES=python for "3.x+"
The logic in USES=python will automatically convert this to 3.8+ by
itself.
Adjust two ports that only had Python 3.7 mentioned but build fine
on Python 3.8 too.
finance/quickfix: mark BROKEN with PYTHON
libtool: compile: c++ -DHAVE_CONFIG_H -I. -I../.. -I -I. -I.. -I../.. -I../C++ -DLIBICONV_PLUG -DPYTHON_MAJOR_VERSION=3 -Wno-unused-variable -Wno-maybe-uninitialized -O2 -pipe -DLIBICONV_PLUG -fstack-protector-strong -fno-strict-aliasing -DLIBICONV_PLUG -Wall -ansi -Wno-unused-command-line-argument -Wpointer-arith -Wwrite-strings -Wno-overloaded-virtual -Wno-deprecated-declarations -Wno-deprecated -std=c++0x -MT _quickfix_la-QuickfixPython.lo -MD -MP -MF .deps/_quickfix_la-QuickfixPython.Tpo -c QuickfixPython.cpp -fPIC -DPIC -o .libs/_quickfix_la-QuickfixPython.o
warning: unknown warning option '-Wno-maybe-uninitialized'; did you mean '-Wno-uninitialized'? [-Wunknown-warning-option]
QuickfixPython.cpp:175:11: fatal error: 'Python.h' file not found
^~~~~~~~~~
1 warning and 1 error generated.
Reviewed by: portmgr, vishwin, yuri
Differential Revision: <https://reviews.freebsd.org/D40568>3d9a815d9c*/*: rename CHEESESHOP to PYPI in MASTER_SITES PR: 267994 Differential revision: D37518 Approved by: bapt77d68471ad
Remove WWW entries moved into port Makefiles Commit b7f05445c00f has added WWW entries to port Makefiles based on WWW: lines in pkg-descr files. This commit removes the WWW: lines of moved-over URLs from these pkg-descr files. Approved by: portmgr (tcberner)fb16dfecae
Add WWW entries to port Makefiles It has been common practice to have one or more URLs at the end of the ports' pkg-descr files, one per line and prefixed with "WWW:". These URLs should point at a project website or other relevant resources. Access to these URLs required processing of the pkg-descr files, and they have often become stale over time. If more than one such URL was present in a pkg-descr file, only the first one was tarnsfered into the port INDEX, but for many ports only the last line did contain the port specific URL to further information. There have been several proposals to make a project URL available as a macro in the ports' Makefiles, over time. This commit implements such a proposal and moves one of the WWW: entries of each pkg-descr file into the respective port's Makefile. A heuristic attempts to identify the most relevant URL in case there is more than one WWW: entry in some pkg-descr file. URLs that are not moved into the Makefile are prefixed with "See also:" instead of "WWW:" in the pkg-descr files in order to preserve them. There are 1256 ports that had no WWW: entries in pkg-descr files. These ports will not be touched in this commit. The portlint port has been adjusted to expect a WWW entry in each port Makefile, and to flag any remaining "WWW:" lines in pkg-descr files as deprecated. Approved by: portmgr (tcberner)b7f05445c0
www/py-django32: Switch consumers over to Django 3.2 Django 2.2 became End-of-Life on 11th April 2022 and Django 3.2 is the new LTS (= Long Term Support) release which will be supported until April 2024. * Switch the most ports that use www/py-django22 to www/py-django32 * Switch www/seahub over to www/py-djangorestframework * Ports that are not yet ready for Django 3.2 (only three so far) or those that have already been set with an expiration date were not taken into account. * Bump PORTREVISION due dependency change where necessary. PR: 261313 Reviewed by: bofh, dvl, koobs, ultima Approved by: bofh, dvl, koobs, ultima, sunpoet, Kevin Golding, Ivan Rozhuk, Alexander Sieg (maintainers) maintainer timeout (remaining maintainers) Differential Revision: https://reviews.freebsd.org/D348590cf5531fcd
www/py-django-csp: Update to 3.7 * Take maintainership. Changelog: https://github.com/mozilla/django-csp/compare/3.5...3.7 PR: 261963 Approved by: Alexander Sieg (maintainer)470f3df5e7
One more small cleanup, forgotten yesterday. Reported by: lwhsucf118ccf87
Remove # $FreeBSD$ from Makefiles.305f148f48
www/py-dj22-django_csp: Rename port to www/py-django-csp * The port was added with the "dj22-" prefix to use Django 2.2 explicitly. In the meantime most Django ports have been switched from Django 1.11 (End-of-Life) to Django 2.2 (current LTS release). Thus rename the port to be consistent with the names of the other Django ports and use this opportunity to match the package name at PyPI as well. * Bump PORTREVISION of www/py-django-dpaste due changed dependencies. PR: 247031 Approved by: Alexander Sieg (maintainer)337857f25f
Assign maintainership to alex@xanderio.de It was a copy/paste error of email address.8c461ef64e
- Reset maintainer due to fatal email bounces Reported by: portscout5233a6469a
Add py-dj22-django_csp 3.5 Django-CSP adds Content-Security-Policy headers to Django. WWW: https://github.com/mozilla/django-csp - While I'm here, fix USES=python PR: 239043 Submitted by: Alexander Sieg <alex@xanderio.de>a33ddf64ec