Repository navigation
no CSS unless DEBUG = True #31
|
Server runs fine otherwise, but if DEBUG = False in carwings/settings.py there is no CSS It appears to be trying The error in the docker logs suggests it's looking for
Changing DEBUG back to True and restarting fixes it. This is on a fresh VM install on Ubuntu 26.04 server. Wiki https://github.com/developerfromjokela/opencarwings/wiki/Running-the-server-in-Docker-(building-yourself) step 7 says to disable DEBUG so that's why I did. Am I "doing it wrong"? Could just carry on running with DEBUG but it's quite chatty, of course. Thanks! |
Replies: 2 comments 2 replies
Hi. I'd like to hear a bit more on the environment you're running in. So you have Ubuntu VM, that's running the docker instance? Or are you running opencarwings without docker, on the VM? |
|
Sorry, of course - thanks for the swift reply! Ubuntu VM I just setup for testing as I'd noticed this on my main instance (Ubuntu 24.04.4 LTS server) elsewhere and wanted to make sure it wasn't a problem with that. Nothing installed other than base ubuntu, docker, the git clone of opencarwings, and the |
Ok, thanks for the details! The issue is that the static files are not served directly from the application server, so you'll need to have a regular http server like nginx or apache in between. Please check https://github.com/developerfromjokela/opencarwings/wiki/Self%E2%80%90hosting-OpenCARWINGS-with-docker%E2%80%90compose#configuring-opencarwings-behind-nginxapache …