#35290: 500 Server error. Whitenoise Not Working when DEBUG = FALSE - Django -
Hosting Static Files
-------------------------------------+-------------------------------------
Reporter: Shihab Khan | Owner: nobody
Type: Bug | Status: new
Component: contrib.staticfiles | Version: 4.2
Severity: Normal | Resolution:
Keywords: 500 Server error, | Triage Stage:
Whitenoise, DEBUG = FALSE | Unreviewed
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Comment (by Shihab Khan):
python manage.py collectstatic command
{{{
(venv) PS C:\Users\intevers\Downloads\django\intevers> python manage.py
collectstatic
You have requested to collect static files at the destination
location as specified in your settings:
C:\Users\intevers\Downloads\django\intevers\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\intevers\Downloads\django\intevers\manage.py", line 22,
in <module>
main()
File "C:\Users\intevers\Downloads\django\intevers\manage.py", line 18,
in main
execute_from_command_line(sys.argv)
File "C:\Users\intevers\Downloads\django\intevers\venv\lib\site-
packages\django\core\management\__init__.py", line 442, in
execute_from_command_line
utility.execute()
File "C:\Users\intevers\Downloads\django\intevers\venv\lib\site-
packages\django\core\management\__init__.py", line 436, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "C:\Users\intevers\Downloads\django\intevers\venv\lib\site-
packages\django\core\management\base.py", line 412, in run_from_argv
self.execute(*args, **cmd_options)
File "C:\Users\intevers\Downloads\django\intevers\venv\lib\site-
packages\django\core\management\base.py", line 458, in execute
output = self.handle(*args, **options)
File "C:\Users\intevers\Downloads\django\intevers\venv\lib\site-
packages\django\contrib\staticfiles\management\commands\collectstatic.py",
line 209, in hand
le
collected = self.collect()
File "C:\Users\intevers\Downloads\django\intevers\venv\lib\site-
packages\django\contrib\staticfiles\management\commands\collectstatic.py",
line 154, in coll
ect
raise processed
whitenoise.storage.MissingFileError: The file
'admin/assets/css/vendors/icon/webfonts/fa-brands-400.woff2' could not be
found with <whitenoise.storage.Compres
sedManifestStaticFilesStorage object at 0x000002243C1053C0>.
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/35290#comment:1>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/0107018e31fc94f1-33aa3843-b392-423f-836a-d390c8cc06e5-000000%40eu-central-1.amazonses.com.