Package Details: python-django-cors-headers 3.4.0-1

Git Clone URL: https://aur.archlinux.org/python-django-cors-headers.git (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: http://github.com/ottoyiu/django-cors-headers
Submitter: portaloffreedom
Maintainer: tasn
Last Packager: tasn
Votes: 4
Popularity: 0.050877
First Submitted: 2015-03-07 16:04
Last Updated: 2020-06-21 10:12

Latest Comments

eomanis commented on 2020-01-20 22:38

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:

_name="django-cors-headers"
pkgname="python-${_name}"
pkgver=3.2.1
(...)
url="https://github.com/adamchainz/django-cors-headers"
(...)
source=("https://files.pythonhosted.org/packages/source/${_name::1}/$_name/$_name-$pkgver.tar.gz")
sha384sums=('8e90b71b19fa32cead1272c352a0fac0a377d30424525d264bfd928def2c9fa58b9e5af4b627b9bfe949df4b1cbe5382')

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

Smasher816 commented on 2020-01-19 05:39

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

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

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

python[2749752]: File "/usr/lib/python3.8/site-packages/corsheaders/checks.py", 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/init.py)

arthru commented on 2018-07-27 12:47

just updated to 2.4.0

arthru commented on 2016-10-26 10:02

Just updated to latest version 1.2.2? Enjoy :)