Aug-17-2020, 01:09 PM
I arrived at the solution by making three changes.
Firstly, I swapped the order of lines 8 and 9 in my parent urls.py so that it looks like this now:
Thirdly I changed
It now runs as intended.
ndc85430: Perhaps JavaScript is better suited to implement my feature however right now I am focused on learning Python and Django. Once I become competent enough in Django maybe I will take up some JavaScript courseware.
Firstly, I swapped the order of lines 8 and 9 in my parent urls.py so that it looks like this now:
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('redactors.urls')), path('', include('posts.urls')), path('', include('counters.urls')), ] + static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)Next I pass in
'posts':posts,
as part of the context inside the home function inside the redactors’ app views.py.Thirdly I changed
‘home’
to ’’
inside the redactors app urls.py.It now runs as intended.
ndc85430: Perhaps JavaScript is better suited to implement my feature however right now I am focused on learning Python and Django. Once I become competent enough in Django maybe I will take up some JavaScript courseware.