Hey Alvaro, If you're encountering 404 errors for static files in your
Django development environment but not in production, start by reviewing
your project's settings in settings.py to ensure proper static file
configurations. Run the *python manage.py collectstatic* command in your
development environment to collect static files. Make sure to double-check
your templates to use the *{% static %}* template tag correctly for
generating static file URLs. Make sure your static files are organized
correctly in your project's directory structure and that your development
server is set up to serve static files. Verify your URL patterns for
handling static files. Clear your browser cache, and check your logs for
any error messages that might provide clues to the issue.

On Fri, Oct 13, 2023 at 7:10 PM Migui Galan <meelan1...@gmail.com> wrote:

> Hi Alvaro, try to check your STATICFILES_DIR, STATIC_ROOT and STATIC_MEDIA
> path. maybe they are not pointing to the correct path
>
> On Fri, Oct 13, 2023 at 9: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/CAKKJMPOBs1P8%3D1f-sLCw-zMrk8QzjHnJAif-r_c8QqWDA9-bwQ%40mail.gmail.com
> <https://groups.google.com/d/msgid/django-users/CAKKJMPOBs1P8%3D1f-sLCw-zMrk8QzjHnJAif-r_c8QqWDA9-bwQ%40mail.gmail.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/CACp8DvccM7nDJBKGvphdUd%2Bhb4UW%2BxOJk4EvDzhf7rjj9id86w%40mail.gmail.com.

Reply via email to