Running my webstite I am getting this entry in the error log:
2024-10-08 12:01:09,990: Internal Server Error: /static/css/styles.css
Traceback (most recent call last):
File "/home/cycleWatts/.virtualenvs/.venv_exergps/lib/python3.10/site-packages/django/core/handlers/exception.py", line 55, in inner
response = get_response(request)
File "/home/cycleWatts/.virtualenvs/.venv_exergps/lib/python3.10/site-packages/django/core/handlers/base.py", line 197, in _get_response
response = wrapped_callback(request, *callback_args, **callback_kwargs)
File "/home/cycleWatts/.virtualenvs/.venv_exergps/lib/python3.10/site-packages/django/views/static.py", line 45, in serve
fullpath = Path(safe_join(document_root, path))
File "/home/cycleWatts/.virtualenvs/.venv_exergps/lib/python3.10/site-packages/django/utils/_os.py", line 17, in safe_join
final_path = abspath(join(base, *paths))
File "/usr/local/lib/python3.10/posixpath.py", line 76, in join
a = os.fspath(a)
TypeError: expected str, bytes or os.PathLike object, not NoneType
This looks like error in the styles.css, which looks OK to me (below), buyt maybe I just dont have my static files setup correctly? Here is my styles.css:
.sidebar-nav {
margin-top: 20px;
padding: 0;
list-style: none;
}
#logout-form {
display: inline;
}
#logout-form button {
padding: 0;
margin: 0;
}
Can someone help me sort this out?