Well, (r'^$') that is a python Regular expression syntax https://docs.python.org/3/library/re.html
^ is the start of string and $ is end of string, so it's matching on nothing. A url with nothing after the /.
Dylan
can you explain me (r'^s'),what is this.--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/3c9cb180-c76e-4d64-aeeb-afaf53527830n%40googlegroups.com.
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAHtg44Cj4F0JwBBEtvd9-xg2R5Qq6f4QxRAhU0BUsER3WjAkww%40mail.gmail.com.

No comments:
Post a Comment