fork download
  1. from django.urls import path
  2. from .views import index, ProductDetailView
  3.  
  4.  
  5. urlpatterns = [
  6. path('', index, name='base'),
  7. path('products/<str:ct_model>/<str:slug>/', ProductDetailView.as_view(), name='product_detail')
  8. ]
  9.  
Runtime error #stdin #stdout #stderr 0.01s 7260KB
stdin
Standard input is empty
stdout
Standard output is empty
stderr
Traceback (most recent call last):
  File "prog.py", line 1, in <module>
ImportError: No module named django.urls