1👍
✅
Try to change it as:
(r'^lesson/(?P<lesson>[a-zA-Z0-9-]+)/$', 'use_lesson.views.Use_Lesson')
0👍
A slugfield is best represented in a regexp by \W which is equal to [a-zA-Z0-9_]
(r'^lesson/(?P<lesson>\W+)/$', 'use_lesson.views.Use_Lesson')
- [Answer]-Django HTTP Post Request from iOS
- [Answer]-Django-secure crashing my site
- [Answer]-CSRF verification failed despite following documentation
Source:stackexchange.com