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 -

python - More Issues with overlapping labels in Tkinter -