Code

Opened 2 years ago

Closed 2 years ago

#17160 closed Bug (needsinfo)

Exception with CachedStaticFilesStorage

Reported by: AndrewG Owned by: nobody
Component: contrib.staticfiles Version: master
Severity: Normal Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description (last modified by aaugustin)

When run manage.py collectstatic with
STATICFILES_STORAGE = 'django.contrib.staticfiles.storage.CachedStaticFilesStorage'

Stop with

  File "C:\Python\lib\site-packages\django\contrib\staticfiles\storage.py", line 74, in hashed_name
    (clean_name, self))
ValueError: The file 'images/arrows-ffffff.png' could not be found with <django.contrib.staticfiles.storage.CachedStaticFilesStorage object at 0x00000000030CB2B0>.

when process css file, but image arrows-ffffff.png exists.

Attachments (0)

Change History (3)

comment:1 Changed 2 years ago by jezdez

  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset

Could you please check if it worked before r17067 or r17068 as I don't have access to a Windows machine at the moment?

comment:2 Changed 2 years ago by anonymous

Same error on r17066 and r17067.

comment:3 Changed 2 years ago by aaugustin

  • Description modified (diff)
  • Resolution set to needsinfo
  • Status changed from new to closed
  • Type changed from Uncategorized to Bug

We'd need a little bit more information to reproduce the problem.

Could you paste:

  • the complete exception traceback,
  • the full path to the CSS and PNG files involved,
  • the line of the CSS file that refers to the PNG file?

Thanks!

Add Comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
as The resolution will be set. Next status will be 'closed'
The resolution will be deleted. Next status will be 'new'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.