Opened 8 months ago
Closed 8 months ago
#35297 closed Bug (invalid)
Not showing static file and 404 error instead of GET mathod
Reported by: | Shihab Khan | Owned by: | nobody |
---|---|---|---|
Component: | contrib.staticfiles | Version: | 4.2 |
Severity: | Normal | Keywords: | static file error 404 |
Cc: | Triage Stage: | Unreviewed | |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
$ 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.
Change History (2)
comment:1 by , 8 months ago
comment:2 by , 8 months ago
Resolution: | → invalid |
---|---|
Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
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/