[Django] #35297: Not showing static file and 404 error instead of GET mathod

11 views
Skip to first unread message

Django

unread,
Mar 13, 2024, 1:32:37 AM3/13/24
to django-...@googlegroups.com
#35297: Not showing static file and 404 error instead of GET mathod
-------------------------------------+-------------------------------------
Reporter: Shihab | Owner: nobody
Khan |
Type: Bug | Status: new
Component: | Version: 4.2
contrib.staticfiles | Keywords: static file error
Severity: Normal | 404
Triage Stage: | Has patch: 0
Unreviewed |
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 0
UI/UX: 0 |
-------------------------------------+-------------------------------------
{{{
$ python manage.py collectstatic

You have requested to collect static files at the destination
location as specified in your settings:

C:\Users\int\Downloads\New folder\project\assets

This will overwrite existing files!
Are you sure you want to do this?

Type 'yes' to continue, or 'no' to cancel: yes
Post-processing 'admin\assets\css\vendors\icon\font-awesome\all.min.css'
failed!

Traceback (most recent call last):
File "C:\Users\int\Downloads\New folder\project\manage.py", line 22, in
<module>
main()
File "C:\Users\int\Downloads\New folder\project\manage.py", line 18, in
main
execute_from_command_line(sys.argv)
File "C:\Users\int\AppData\Local\Programs\Python\Python310\lib\site-
packages\django\core\management\__init__.py", line 442, in
execute_from_command_line
utility.execute()
File "C:\Users\int\AppData\Local\Programs\Python\Python310\lib\site-
packages\django\core\management\__init__.py", line 436, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "C:\Users\int\AppData\Local\Programs\Python\Python310\lib\site-
packages\django\core\management\base.py", line 412, in run_from_argv
self.execute(*args, **cmd_options)
File "C:\Users\int\AppData\Local\Programs\Python\Python310\lib\site-
packages\django\core\management\base.py", line 458, in execute
output = self.handle(*args, **options)
File "C:\Users\int\AppData\Local\Programs\Python\Python310\lib\site-
packages\django\contrib\staticfiles\management\commands\collectstatic.py",
line 209, in handle
collected = self.collect()
File "C:\Users\int\AppData\Local\Programs\Python\Python310\lib\site-
packages\django\contrib\staticfiles\management\commands\collectstatic.py",
line 154, in collect
raise processed
whitenoise.storage.MissingFileError: The file
'admin/assets/css/vendors/icon/webfonts/fa-brands-400.woff2' could not be
found with <whitenoise.storage.CompressedManifestStaticFilesStorage object
at 0x000002A745A6C370>.

The CSS file 'admin\assets\css\vendors\icon\font-awesome\all.min.css'
references a file which could not be found:
admin/assets/css/vendors/icon/webfonts/fa-brands-400.woff2

Please check the URL references in this CSS file, particularly any
relative paths which might be pointing to the wrong location.

}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/35297>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

Django

unread,
Mar 13, 2024, 1:36:48 AM3/13/24
to django-...@googlegroups.com
#35297: Not showing static file and 404 error instead of GET mathod
-------------------------------------+-------------------------------------
Reporter: Shihab Khan | Owner: nobody
Type: Bug | Status: new
Component: contrib.staticfiles | Version: 4.2
Severity: Normal | Resolution:
Keywords: static file error | Triage Stage:
404 | Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Comment (by David Sanders):

Shihab Khan, you've been asked not to submit tickets that are support
questions. Please stop as it is creating unnecessary work for
contributors. There are many places you can go to get help:
https://www.djangoproject.com/community/
--
Ticket URL: <https://code.djangoproject.com/ticket/35297#comment:1>

Django

unread,
Mar 13, 2024, 1:36:59 AM3/13/24
to django-...@googlegroups.com
#35297: Not showing static file and 404 error instead of GET mathod
-------------------------------------+-------------------------------------
Reporter: Shihab Khan | Owner: nobody
Type: Bug | Status: closed
Component: contrib.staticfiles | Version: 4.2
Severity: Normal | Resolution: invalid
Keywords: static file error | Triage Stage:
404 | Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by David Sanders):

* resolution: => invalid
* status: new => closed

--
Ticket URL: <https://code.djangoproject.com/ticket/35297#comment:2>
Reply all
Reply to author
Forward
0 new messages