Look at how you configure your static files and also the deburg mode of your system
Settings.py DEBUG = True STATIC_URL = '/static/' STATICFILES_DIRS = [os.path.join(BASE_DIR, "static")] main urls.py from django.conf import settings from django.conf.urls.static import static urlpatterns = [ # ... your other URL patterns ... ] if settings.DEBUG: urlpatterns += static(settings.STATIC_URL, document_root=settings.STATIC_ROOT) Then Run python manage.py collectstatic On Fri, Oct 13, 2023, 4:14 PM Alvaro Nascimento <alvaro.nr...@gmail.com> wrote: > i have an issue with my Django site, > > on loading staticfiles, it does 404 error. > > but in production everything works fine. > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to django-users+unsubscr...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/django-users/f6e31790-20fc-40db-b22a-bc86a3d9738an%40googlegroups.com > <https://groups.google.com/d/msgid/django-users/f6e31790-20fc-40db-b22a-bc86a3d9738an%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAJU16zf0Pp7o7DAD-sns7fFmo-R4QRy6wqDM_6Tnsu4sd8mdVg%40mail.gmail.com.