python - Routing - parameter as view name -


is possible write url route in django view name dynamic (parsed url)?

"http://www.example.com/<view>/"  => executes app.views.<view>  

you write view docked @ http://www.example.com/ view name argument , in view function either fire apropriate handler dict name -> custom view, or scan globals() (ugly, end checking input malicious data since it's taken directly users , globals() returns dict of global variables visible).


Comments

Popular posts from this blog

php - Calling a template part from a post -

Firefox SVG shape not printing when it has stroke -

How to mention the localhost in android -