Package Details: python-django-cors-headers 3.14.0-2

Git Clone URL: (read-only, click to copy)
Package Base: python-django-cors-headers
Description: Django application for handling the server headers required for Cross-Origin Resource Sharing (CORS)
Upstream URL:
Submitter: portaloffreedom
Maintainer: razer
Last Packager: razer
Votes: 5
Popularity: 0.007436
First Submitted: 2015-03-07 16:04 (UTC)
Last Updated: 2023-03-16 06:04 (UTC)

Latest Comments

razer commented on 2023-03-16 06:05 (UTC)

thanks szanko

SZanko commented on 2023-03-15 17:04 (UTC)

Here is a patch to package this project without

diff --git a/PKGBUILD b/PKGBUILD
index 8097169..1550a1f 100644
@@ -1,25 +1,32 @@
 # Maintainer: Tom Hacohen <>
 # Past Maintainer: Miguel de Val-Borro <miguel at archlinux dot net>
+# Contributor: SZanko, szanko at protonmail dot com

 pkgdesc="Django application for handling the server headers required for Cross-Origin Resource Sharing (CORS)"
+  'python-build'
+  'python-installer'
+  'python-wheel'
+  'python-setuptools-scm'

 build() {
   cd ${srcdir}/${_pypi_pkgname}-${pkgver}
-  python build
+  python -m build --wheel --no-isolation

 package() {
   cd ${srcdir}/${_pypi_pkgname}-${pkgver}
-  python install --prefix=/usr --root=${pkgdir}
+  python -m installer --destdir="$pkgdir" dist/*.whl
+  install -vDm644 -t "$pkgdir/usr/share/license/$pkgname" LICENSE

razer commented on 2023-03-14 11:06 (UTC)

I have the same problem on several pypi packages. Seems like setuptools turns obsolete since a lot of maintainer choose tu use pip. Problem is I don't found any way to build it directly from sources. Help required then

bezerkk commented on 2023-03-14 10:32 (UTC) (edited on 2023-03-14 10:34 (UTC) by bezerkk)

==> Extracting sources... -> Extracting django_cors_headers-3.14.0.tar.gz with bsdtar ==> Sources are ready. ==> Making package: python-django-cors-headers 3.14.0-1 (tis 14 mar 2023 11:25:27) ==> Checking runtime dependencies... ==> Checking buildtime dependencies... ==> WARNING: Using existing $srcdir/ tree ==> Starting build()... python: can't open file '/home/xxxx/.cache/yay/python-django-cors-headers/src/django_cors_headers-3.14.0/': [Errno 2] No such file or directory ==> ERROR: A failure occurred in build(). Aborting... -> error making: python-django-cors-headers

eomanis commented on 2020-01-20 22:38 (UTC) (edited on 2020-01-21 19:44 (UTC) by eomanis)

Version 2.4.0 appears to be incompatible with python-django-3.0.2; it seems to rely on legacy Django API that was removed in the transition from Django 2 to Django 3. This appears to be the cause of the error mentioned by Smasher816, see also this Stack Overflow thread.

Can anyone update it to the current version 3.2.1? It would require these changes to the PKGBUILD:


With this, etesync-server-0.2.2-1 works again for me.

Smasher816 commented on 2020-01-19 05:39 (UTC) (edited on 2020-01-19 05:40 (UTC) by Smasher816)

Looks like it needs to be updated to use the new django.

python[2749752]: File "/usr/lib/python3.8/site-packages/corsheaders/", line 1, in <module>

python[2749752]: from .checks import check_settings # noqa: F401

python[2749752]: File "/usr/lib/python3.8/site-packages/corsheaders/", line 8, in <module>

python[2749752]: from django.utils import six

python[2749752]: ImportError: cannot import name 'six' from 'django.utils' (/usr/lib/python3.8/site-packages/django/utils/

arthru commented on 2018-07-27 12:47 (UTC)

just updated to 2.4.0

arthru commented on 2016-10-26 10:02 (UTC)

Just updated to latest version 1.2.2? Enjoy :)