I've build a Django site on a Digital Ocean droplet but the static files seem to be inaccessible.
Looking around for solutions I've think the problem lies in the server settings (Nginx), but as this is even newer for me I would like to verify this before I mess it up.
The CSS is placed within django_project/static/css
, this folder is not accessible using a browser:
IPadress/static/css/style.css serves a '404 Not Found' error on the CSS
Edit
I just found the Nginx error log which states looking in for the static files in django_project/django_project/static/css
which is nonexistent. I presume this should be corrected in settings.py. Am I correct?
Settings.py static:
STATIC_URL = '/static/'
STATIC_ROOT = os.path.join(BASE_DIR, 'static')