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

Popular posts from this blog

jquery - How can I dynamically add a browser tab? -

node.js - Getting the socket id,user id pair of a logged in user(s) -

keyboard - C++ GetAsyncKeyState alternative -