Re: question about url

2014-01-09 Thread Tom Evans
On Thu, Jan 9, 2014 at 11:06 AM, luca72 wrote: > Hello > i have defined an url as: > > (r'^tipi/(\w)', 'polls.views.tipi'), The word 'tipi', followed by a forward slash, followed by a SINGLE 'word' character, and then any other characters before the end of the URL (but none of them will be captur

Re: question about url

2014-01-09 Thread Avraham Serour
you are probably opening the wrong url, I also suggest using $ at the end of the regex On Thu, Jan 9, 2014 at 1:06 PM, luca72 wrote: > Hello > i have defined an url as: > > (r'^tipi/(\w)', 'polls.views.tipi'), > > the template is: > > > {% if variabile == "vino" %} > > {% for a in lista_v

Re: Question about URL namespaces

2013-01-07 Thread Amirouche
*tl;dr* if you do not reuse the same django application several times it is not useful. The following is a messy don't hesitate to ask for clarification so that me or someone else can contribute more documentation regarding this topic, there is probably more than that but that's what I understo

Re: Question about URL namespaces

2013-01-02 Thread Dae_James
So what does instance actually mean here? Does it just mean another copy of the app directory with a different directory name? 在 2012年12月30日星期日UTC+8上午3时06分03秒,Ryan Blunden写道: > > I've never used this feature but I believe it was created so that for a > single Django project, you could provide m

Re: Question about URL namespaces

2012-12-29 Thread Ryan Blunden
I've never used this feature but I believe it was created so that for a single Django project, you could provide multiple administration apps. For example, you might have one for customers and one for back office staff that expose different models, have different permissions etc. So to answer y

Re: Question about {% url %}

2007-08-07 Thread Tim Chase
> r'^order_by_(?P-?(title|attachment|date))/(?P[0-9]+)/', > > regex error While I'm not sure on it, you might try making that a non-capturing group using "(?:...)": r'^order_by_(?P-?(?:title|attachment|date))/(?P[0-9]+)/' which may be less ambiguous to a reverse regexp-parser (which it sound

Re: Question about {% url %}

2007-08-07 Thread Margaret
the question is r'^order_by_(?P-?(title|attachment|date))/(?P[0-9]+)/', regex error On 7/29/07, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > > On Sun, 2007-07-29 at 06:55 +, ZhangshenPeng wrote: > > when you use url pattern [a-z]+ and named it , then use in {% url > > %} ,everything is

Re: Question about {% url %}

2007-08-07 Thread Margaret
anyone resolved this question??? On 7/29/07, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > > On Sun, 2007-07-29 at 06:55 +, ZhangshenPeng wrote: > > when you use url pattern [a-z]+ and named it , then use in {% url > > %} ,everything is all right . > > when I change > > [a-z]+ > > into > >

Re: Question about {% url %}

2007-07-29 Thread Malcolm Tredinnick
On Sun, 2007-07-29 at 06:55 +, ZhangshenPeng wrote: > when you use url pattern [a-z]+ and named it , then use in {% url > %} ,everything is all right . > when I change > [a-z]+ > into > (title|attachment|date) > django report error "unbalanced parenthesis". > how to fix my code to do the right