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? -

keyboard - C++ GetAsyncKeyState alternative -

android - java.net.UnknownHostException(Unable to resolve host “URL”: No address associated with hostname) -