Django: The Definitive Guide gives a good tutorial/refresher too: http://djangobook.com/en/2.0/chapter03/
On 30 Sep 2010, at 16:25, Steve Holden wrote: > Just as "^" means "start of string" so "$" mean "end of string", so "^$" > means a string where the end is next to the beginning. > > You can read the Python documentation for the "re"module for more > insight into all this. > > regards > Steve > > On 9/30/2010 11:20 AM, Bradley Hintze wrote: >> LOL, let me rephrase. >> >> What is the significance of the '$' (or what does it mean) in the URLs >> as pointed out in previous messages? >> >> On Thu, Sep 30, 2010 at 11:15 AM, Carlton Gibson >> <carlton.gib...@gmail.com> wrote: >>> Its the plural of $. >>> >>> On 30 Sep 2010, at 16:02, Bradley Hintze wrote: >>> >>>> Why $s, if you don't mind me asking? >>>> >>>> On Thu, Sep 30, 2010 at 10:55 AM, Carlton Gibson >>>> <carlton.gib...@gmail.com> wrote: >>>>> >>>>> On 30 Sep 2010, at 15:42, Bradley Hintze wrote: >>>>> >>>>>> urlpatterns = patterns('', >>>>>> (r'^', home_view), >>>>>> (r'^here/', here), >>>>>> # Example: >>>>>> ) >>>>> >>>>> your first pattern matches all URLs which have a beginning, which is all >>>>> URLs. You need to add the $s at the end: >>>>> >>>>> urlpatterns = patterns('', >>>>> (r'^$', home_view), >>>>> (r'^here/$', here), >>>>> # Example: >>>>> ) >>>>> >>>>> HTH >>>>> >>>>> Regards, >>>>> Carlton >>>>> >>>>> -- >>>>> You received this message because you are subscribed to the Google Groups >>>>> "Django users" group. >>>>> To post to this group, send email to django-us...@googlegroups.com. >>>>> To unsubscribe from this group, send email to >>>>> django-users+unsubscr...@googlegroups.com. >>>>> For more options, visit this group at >>>>> http://groups.google.com/group/django-users?hl=en. >>>>> >>>>> >>>> >>>> >>>> >>>> -- >>>> Bradley J. Hintze >>>> Graduate Student >>>> Duke University >>>> School of Medicine >>>> 801-712-8799 >>>> >>>> -- >>>> You received this message because you are subscribed to the Google Groups >>>> "Django users" group. >>>> To post to this group, send email to django-us...@googlegroups.com. >>>> To unsubscribe from this group, send email to >>>> django-users+unsubscr...@googlegroups.com. >>>> For more options, visit this group at >>>> http://groups.google.com/group/django-users?hl=en. >>>> >>> >>> -- >>> You received this message because you are subscribed to the Google Groups >>> "Django users" group. >>> To post to this group, send email to django-us...@googlegroups.com. >>> To unsubscribe from this group, send email to >>> django-users+unsubscr...@googlegroups.com. >>> For more options, visit this group at >>> http://groups.google.com/group/django-users?hl=en. >>> >>> >> >> >> > > > -- > DjangoCon US 2010 September 7-9 http://djangocon.us/ > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To post to this group, send email to django-us...@googlegroups.com. > To unsubscribe from this group, send email to > django-users+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/django-users?hl=en. > -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.