All other images are displaying but not the registered user’s profile photo. Why is that?
In my profile template I try to display image like so:
but nothing is showing up.
I followed the Django Authentication And Authorization tutorial.
Might it be some misconfiguration in my settings.py or url.py files?
Ken–Can you help? Are you there/here??
Here are my url.py settings:
from django.contrib import admin from django.urls import path, include from django.conf import settings from django.conf.urls.static import static urlpatterns = [ path('admin/', admin.site.urls), path('', include('tutorial_base_app.urls')), path('membership/', include('membership.urls', namespace='membership')), path('membership/', include('django.contrib.auth.urls')), ] if settings.DEBUG: urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
here is the section of the settings.py where we configure static and media folders:
Can someone please help?