Tell me, how can I take in urls uuid ?
urlpatterns = [ url(r'^users/(?P<user_id>[a-f0-9]{8}-?[a-f0-9]{4}-?4[a-f0-9]{3}-?[89ab][a-f0-9]{3}-?[a-f0-9]{12})/$', UserDetails.as_view(), name = 'users_detail'), ] So, but it does not work.
Tell me, how can I take in urls uuid ?
urlpatterns = [ url(r'^users/(?P<user_id>[a-f0-9]{8}-?[a-f0-9]{4}-?4[a-f0-9]{3}-?[89ab][a-f0-9]{3}-?[a-f0-9]{12})/$', UserDetails.as_view(), name = 'users_detail'), ] So, but it does not work.
Source: https://ru.stackoverflow.com/questions/721463/
All Articles