I want to add a field for users to edit their profile pictures and checked out a few tutorials. However, every tutorial I've found included some form of this in urls.py:
if settings.DEBUG:
urlpatterns += static(settings.MEDIA_URL,
document_root=settings.MEDIA_ROOT
Why can't I do this with deployment and if it has to be like this? Is there any way for me to allow users to upload and modify their profile pictures?
Any help would be appreciated. Thanks.