Package: python3-djangorestframework
Version: 3.14.0-2
Severity: normal
X-Debbugs-Cc: si...@lyngshede.dk

Dear Maintainer,

When deploying a Django application, using the staticfiles module, the
application will throw a 500, if the user attempts to access the a REST
endpoint using a normal browser, as the staticfiles module will fail to
locate the bootstrap-tweaks.css file. The file is shipped be the Django
REST Framework project, but is excluded by the debian/rules file.

It happens because the following rule accidentally matches the
bootstrap-tweaks.css file: 
$(RM) 
debian/python3-djangorestframework/usr/lib/python3/dist-packages/rest_framework/static/rest_framework/css/bootstrap*.css

The correct rule would be:
$(RM) 
debian/python3-djangorestframework/usr/lib/python3/dist-packages/rest_framework/static/rest_framework/css/bootstrap*.min.css


-- System Information:
Debian Release: 12.4
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable-security'), (500, 'stable')
Architecture: arm64 (aarch64)

Kernel: Linux 6.1.0-9-arm64 (SMP w/2 CPU threads)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), 
LANGUAGE=en_US:en
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages python3-djangorestframework depends on:
ii  fonts-font-awesome          5.0.10+really4.7.0~dfsg-4.1
ii  fonts-glyphicons-halflings  1.009~3.4.1+dfsg-3
ii  libjs-bootstrap             3.4.1+dfsg-3
ii  libjs-jquery                3.6.1+dfsg+~3.5.14-1
ii  libjs-prettify              2015.12.04+dfsg-1.1
ii  python3                     3.11.2-1+b1
ii  python3-django              3:3.2.19-1+deb12u1
ii  python3-tz                  2022.7.1-4

Versions of packages python3-djangorestframework recommends:
ii  python3-coreapi          2.3.3-6
ii  python3-coreschema       0.0.4-5
ii  python3-django-filters   23.1-1
ii  python3-django-guardian  2.4.0-2
ii  python3-markdown         3.4.1-2
ii  python3-psycopg2         2.9.5-1+b1
ii  python3-yaml             6.0-3+b2

Versions of packages python3-djangorestframework suggests:
pn  python-djangorestframework-doc  <none>

-- no debconf information

Reply via email to