mirror of https://github.com/openwrt/packages.git
15 lines
287 B
Bash
15 lines
287 B
Bash
#!/bin/sh
|
|
|
|
[ "$1" = python3-django-cors-headers ] || exit 0
|
|
|
|
python3 - << 'EOF'
|
|
import corsheaders
|
|
from corsheaders.middleware import CorsMiddleware
|
|
from corsheaders.conf import conf
|
|
|
|
assert CorsMiddleware is not None
|
|
assert conf is not None
|
|
|
|
print("python3-django-cors-headers OK")
|
|
EOF
|