django - What did I do wrong with my URL? -


simple question. reading docs, i'm having trouble understanding syntax in urls.

(r'^accounts/(?p<username>)/(listview)/$') 

what did wrong here? note, username variable whereas listview not. should setup enduser can go /accounts/ben/listview/ , view profile in list view.

perhaps should (r'^accounts/(?p<username>)/listview/$'), see no need parenthesize listview bit if not variable.


Comments

Popular posts from this blog

java - Unable to make sub reports with Jasper -

scala - play framework: Modules were resolved with conflicting cross-version suffixes -

Passing Variables from AngelScript to C++ -