My urls.py file is this:
urlpatterns = [
url(r'^chat/(?P\d+)/$', views.chatindex_view, name='chatindex_view'),
]
and I'm getting this error while executing the runserver command:
in regex (regex, six.text_type(e))
django.core.exceptions.ImproperlyConfigured: "^chat/(?P\d+)/$" is not a valid regular expression: unknown specifier: ?P\d
That's not valid. Where is the keyword argument you are trying to get ?
url(r'^chat/(?P<id>\d+)/$', views.chatindex_view, name='chatindex_view'),
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With