python - Regular expressions in Django -


i new django , having problems views. urls extension .html go view ...app.views.test

i have:

url(r'^\. html$',views.test) 

just check ending:

url(r'\.html$', views.test) 

note dot needs escaped backslash since dot has special meaning:

'.' (dot.)

in default mode, matches character except newline.


Comments

Popular posts from this blog

Prolog - Listing -

orchardcms - change base url in local copy in Orchard CMS -

linear regression - Trying to get confidence/prediction intervals with `predict.lm` in R, but I keep getting an error regarding my dichotomous variable -