Changes between Initial Version and Version 2 of Ticket #35290


Ignore:
Timestamp:
Mar 12, 2024, 4:40:07 AM (9 months ago)
Author:
Shihab Khan
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #35290 – Description

    initial v2  
    1111
    1212setting.py
     13
     14{{{
    1315from pathlib import Path
    1416import os
     
    201203         },
    202204    }
     205}}}
     206
    203207
    204208
    205209urls.py
    206210
     211
     212{{{
    207213from django.contrib import admin
    208214from django.urls import path ,include
     
    247253
    248254urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
     255
     256}}}
     257
     258python manage.py collectstatic    command
     259
     260
     261{{{
     262(venv) PS C:\Users\intevers\Downloads\django\intevers> python manage.py collectstatic
     263
     264You have requested to collect static files at the destination
     265location as specified in your settings:
     266
     267    C:\Users\intevers\Downloads\django\intevers\assets
     268
     269This will overwrite existing files!
     270Are you sure you want to do this?
     271
     272Type 'yes' to continue, or 'no' to cancel: yes
     273Post-processing 'admin\assets\css\vendors\icon\font-awesome\all.min.css' failed!
     274
     275Traceback (most recent call last):
     276  File "C:\Users\intevers\Downloads\django\intevers\manage.py", line 22, in <module>
     277    main()
     278  File "C:\Users\intevers\Downloads\django\intevers\manage.py", line 18, in main
     279    execute_from_command_line(sys.argv)
     280  File "C:\Users\intevers\Downloads\django\intevers\venv\lib\site-packages\django\core\management\__init__.py", line 442, in execute_from_command_line       
     281    utility.execute()
     282  File "C:\Users\intevers\Downloads\django\intevers\venv\lib\site-packages\django\core\management\__init__.py", line 436, in execute
     283    self.fetch_command(subcommand).run_from_argv(self.argv)
     284  File "C:\Users\intevers\Downloads\django\intevers\venv\lib\site-packages\django\core\management\base.py", line 412, in run_from_argv
     285    self.execute(*args, **cmd_options)
     286  File "C:\Users\intevers\Downloads\django\intevers\venv\lib\site-packages\django\core\management\base.py", line 458, in execute
     287    output = self.handle(*args, **options)
     288  File "C:\Users\intevers\Downloads\django\intevers\venv\lib\site-packages\django\contrib\staticfiles\management\commands\collectstatic.py", line 209, in hand
     289le
     290    collected = self.collect()
     291  File "C:\Users\intevers\Downloads\django\intevers\venv\lib\site-packages\django\contrib\staticfiles\management\commands\collectstatic.py", line 154, in coll
     292ect
     293    raise processed
     294whitenoise.storage.MissingFileError: The file 'admin/assets/css/vendors/icon/webfonts/fa-brands-400.woff2' could not be found with <whitenoise.storage.Compres
     295sedManifestStaticFilesStorage object at 0x000002243C1053C0>.
     296
     297The CSS file 'admin\assets\css\vendors\icon\font-awesome\all.min.css' references a file which could not be found:
     298  admin/assets/css/vendors/icon/webfonts/fa-brands-400.woff2
     299
     300Please check the URL references in this CSS file, particularly any
     301relative paths which might be pointing to the wrong location.
     302}}}
Back to Top