문제

I have urls.py declaration of:

(r'^Account/PS/d=^[A-za-z0-9]{2,50}.[a-z]{1,3}$', SAA),

I am clicking on a link that looks like:

http://127.0.0.1:8000/Account/PS/d=mydomain.com

I've stopped eclipse's server, restarted eclipse, then started server.

I then click that link from above, but it throws the django "page not found" showing the urls.py declarations as of the regex didn't match the url.

What am I doing wrong here?

Thank you.

도움이 되었습니까?

해결책

You need to take your second ^ out of your regex. Change it to:

(r'^Account/PS/d=[A-za-z0-9]{2,50}.[a-z]{1,3}$', SAA),
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top