when I access to my admin dashboard in Django, it doesn't load css and img files, so doesn't work well. All the files are in 'project/static/admin', and in my settins.py I have this:
STATIC_URL = '/static/'
STATIC_ROOT = os.path.join(BASE_DIR, "static")
When I execute collectstatic, appears: 0 static files copied to '/opt/myenv/myenv/static', 318 unmodified.
I'm using Nginx + Gunicorn, also I'm using https with Cloudflare. Can anyone help me? Thanks.
location /static { root /path/static/; }in your nginx file - LemayzeurSTATICFILES_DIRS- Lemayzeur