It's actually this I copy and pasted the wrong thing:

<a href="/viewLit/edit/circuit/{{record.circuitid}}/" target="blank" class=
"edit-item" title="Edit">Edit Circuit Info</a><br>



My project level urls.py is:

from django.contrib import admin
from django.urls import path, include
from django.conf.urls import url
import debug_toolbar

urlpatterns = [
    path('admin/', admin.site.urls),
    path('', include('homepage.urls')),
    path('searchlit/', include('searchLit.urls')),
    path('viewLit/edit/', include('editLit.urls')),
    path('viewLit/', include('viewLit.urls')),
    path('edit/', include('editLit.urls')),
    path(r'^__debug__/', include(debug_toolbar.urls)),
]

So, *editLit.urls* will be:

[...]
urlpatterns = [
        [...]
     path('circuit/<str:circuitid>', 
views.editLit.as_view(),name='editLit'),
        [....]

]

But it doesn't work it gives me the same error:

*SELECT* ••• *FROM* "circuitinfotable" *WHERE* "circuitinfotable"."circuitid" 
= 'edit/circuit/STTK-100G-18040-01-WRBB'

-- 
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/a4e4c292-11cb-443f-8a2a-bcb91053f6f1%40googlegroups.com.

Reply via email to