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 - Plugin org.apache.maven.plugins:maven-install-plugin:2.4 or one of its dependencies could not be resolved -

Round ImageView Android -

How can I utilize Yahoo Weather API in android -