Django: Static Files Not Loading in Production
Static.
With DEBUG=False, Django does not serve static files itself. The admin and your CSS look unstyled until you collect them and the web server is told where they live.
Step 1: Check settings

Set STATIC_URL = '/static/' and STATIC_ROOT = BASE_DIR / 'staticfiles'.
Step 2: Collect the files

Run python manage.py collectstatic. It copies all static files into STATIC_ROOT.
Step 3: Serve them

With Nginx or Apache, map /static/ to the STATIC_ROOT folder. Check read permissions.
Step 4: Or use WhiteNoise

Add whitenoise.middleware.WhiteNoiseMiddleware just after the security middleware, and STATICFILES_STORAGE settings if wanted.
Step 5: Check the template

Load {% load static %} and use {% static 'css/style.css' %}.
Step 6: Clear caches

Hard refresh. Re-run collectstatic after changes.
Step 7: Test the address

Open /static/admin/css/base.css in the browser. If it loads, static serving works.
Still stuck?
If these steps do not solve it, we fix it for you for a flat $99. Full refund if we do not solve it within 7 days.
Related guides
- Writing Clear Error Reports: Screenshots, URLs and Steps
- WordPress Tag and Date Archives Duplicate Content: Settings
- WordPress Permalinks Change: Redirect Old URLs and Avoid 404s
- Error Establishing a Database Connection in WordPress: Full Checklist