remace / OC-P13_Archery_Buddy

study app on helping archers in their everyday archery problems
http://www.archerybuddy.tech
Other
0 stars 0 forks source link

Some statics are missing #42

Closed freezed closed 1 year ago

freezed commented 1 year ago

Issue

After a fresh install some statics are missing when running: ./manage.py runserver

Watching for file changes with StatReloader
Performing system checks...

System check identified no issues (0 silenced).
January 24, 2023 - 08:54:15
Django version 4.1, using settings 'DjangoConf.settings.dev'
Starting development server at http://127.0.0.1:8000/
Quit the server with CONTROL-C.
[24/Jan/2023 08:54:20] "GET / HTTP/1.1" 200 14882
[24/Jan/2023 08:54:20] "GET /static/css/dist/styles.css HTTP/1.1" 404 1816
[24/Jan/2023 08:54:20] "GET /static/django-browser-reload/reload-listener.js HTTP/1.1" 200 623
[24/Jan/2023 08:54:20] "GET /static/debug_toolbar/css/toolbar.css HTTP/1.1" 200 11815
[24/Jan/2023 08:54:20] "GET /static/debug_toolbar/js/toolbar.js HTTP/1.1" 200 12222
[24/Jan/2023 08:54:20] "GET /static/debug_toolbar/js/utils.js HTTP/1.1" 200 4479
[24/Jan/2023 08:54:20] "GET /static/css/dist/styles.css HTTP/1.1" 404 1816
[24/Jan/2023 08:54:21] "GET /static/django-browser-reload/reload-worker.js HTTP/1.1" 200 2711
[24/Jan/2023 08:54:21] "GET /static/debug_toolbar/css/print.css HTTP/1.1" 200 43
[24/Jan/2023 08:54:21] "GET /static/core/image/icon/logo.png HTTP/1.1" 200 32997
[24/Jan/2023 08:56:34] "GET /arrows/list/ HTTP/1.1" 302 0
[24/Jan/2023 08:56:34] "GET /user/login/?next=/arrows/list/ HTTP/1.1" 200 15471
[24/Jan/2023 08:56:35] "GET /static/css/dist/styles.css HTTP/1.1" 404 1816
[24/Jan/2023 08:56:35] "GET /static/debug_toolbar/js/toolbar.js HTTP/1.1" 304 0
[24/Jan/2023 08:56:35] "GET /static/django-browser-reload/reload-listener.js HTTP/1.1" 304 0
[24/Jan/2023 08:56:35] "GET /static/debug_toolbar/css/toolbar.css HTTP/1.1" 304 0
[24/Jan/2023 08:56:35] "GET /static/debug_toolbar/js/utils.js HTTP/1.1" 200 4479
[24/Jan/2023 08:56:35] "GET /static/debug_toolbar/css/print.css HTTP/1.1" 200 43
[24/Jan/2023 08:56:35] "GET /static/core/image/icon/logo.png HTTP/1.1" 200 32997
[24/Jan/2023 08:57:33] "GET / HTTP/1.1" 200 14882
[24/Jan/2023 08:57:33] "GET /static/css/dist/styles.css HTTP/1.1" 404 1816
…

image

remace commented 1 year ago

I added missing instructions in README.md.

tailwind needs to be installed and a development server has to be started for building css static files.

commit e6003ef3 in branch missing-static-tailwind-django should fix this problem

freezed commented 1 year ago

Tailwind need some JS tools:

(archery-buddy-ICc9T8r2-py3.10) user@machine ~/git/men-rt-ocp13/ArcheryBuddy % ./manage.py tailwind install
CommandError: 
It looks like node.js and/or npm is not installed or cannot be found.

Visit https://nodejs.org to download and install node.js for your system.

If you have npm installed and still getting this error message, set NPM_BIN_PATH variable in settings.py to match path of NPM executable in your system.

Example:
NPM_BIN_PATH = "/usr/local/bin/npm"
zsh: exit 1     ./manage.py tailwind install
remace commented 1 year ago

[ ] documentation: add nodejs and npm installation in README.md