On 30 Sep 2010, at 16:38, Bradley Hintze wrote:
> OH, they're regular expressions, right? Ok, I need to try to
> understand RE but they still escape any meaning for me somehow.
Yeah, I think that's a meme.
I can't really offer any advice beyond:
- Just learn enough to get the URLs you need wor
OH, they're regular expressions, right? Ok, I need to try to
understand RE but they still escape any meaning for me somehow.
On Thu, Sep 30, 2010 at 11:33 AM, Carlton Gibson
wrote:
> Django: The Definitive Guide gives a good tutorial/refresher too:
>
> http://djangobook.com/en/2.0/chapter03/
>
>
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 ca
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 rephr
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
wrote:
> Its the plural of $.
>
> On 30 Sep 2010, at 16:02, Bradley Hintze wrote:
>
>> Why $s, if you don't mind me a
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
> wrote:
>>
>> On 30 Sep 2010, at 15:42, Bradley Hintze wrote:
>>
>>> urlpatterns = patterns('',
>>>(r'^', home_view),
>>>(r
Why $s, if you don't mind me asking?
On Thu, Sep 30, 2010 at 10:55 AM, Carlton Gibson
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 ha
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'^$
8 matches
Mail list logo