I recently Upload my Project on Heroku and then shift it to the Digital Ocean App platform. My static files work properly on Digital Ocean but now when I try to run my project on a local host my project is not loading my static files.
settings.py
STATIC_URL = '/static/'
STATICFILES_DIRS=[
os.path.join(BASE_DIR, 'static'),
BASE_DIR / "static",
]
MEDIA_ROOT = os.path.join(BASE_DIR, 'images')
MEDIA_URL = '/images/'
urls.py
if settings.DEBUG:
urlpatterns += static(settings.MEDIA_URL,
document_root=settings.MEDIA_ROOT)