python - require minimum length of a variable in a django url -
this bit urls.py requires 9 character value...
(r'^launch/(?p<app_id>[0-9a-za-z]{9})/*', 'mysite.views.launch_app'),
how change requires minimum 9 character value?
changing regex to{9,}
should it.
(r'^launch/(?p<app_id>[0-9a-za-z]{9,})/*', 'mysite.views.launch_app'),
Comments
Post a Comment