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

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" %} > >

question about url

2014-01-09 Thread luca72
Hello i have defined an url as: (r'^tipi/(\w)', 'polls.views.tipi'), the template is: {% if variabile == "vino" %} {% for a in lista_vini %} {{a}} {% endfor %} {% endif %} the view is: def tipi(request,a): if a == 'Barbaresco': testo = ['Wine name: BARBARESCO','Region:

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

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

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

Question about URL namespaces

2012-12-29 Thread Dae James
When I was reading django's URL document, I come across "URL namespaces". The raw sentence is "When you need to deploy multiple instances of a single application, it can be helpful to be able to differentiate between instances." I'm very confused here. What the application here refer to? Does it

Re: Newbie question about url and seo

2010-08-20 Thread Karim Gorjux
On Fri, Aug 20, 2010 at 18:19, David Euzen wrote: > Hello, > > you should think of it in terms of ressource, not of file. URLs are > about ressources not about files even if sometimes ressources are > files. Thanks for your answer. Was very useful! Have a nice day. --

Re: Newbie question about url and seo

2010-08-20 Thread David Euzen
Hello, you should think of it in terms of ressource, not of file. URLs are about ressources not about files even if sometimes ressources are files. Django's way to build URLs is flexible. URLs built this way can make much more sense that URLs built upon file path. ie

Newbie question about url and seo

2010-08-20 Thread Karim Gorjux
Hi all! This is my first post here in the list, I'm new in django and python but I really found it fun and exciting so here we are! My first question is pretty simple. I noted that the url I create using urls.py are cleaned and pretty but there is no index.html or simila. It seems that every url

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

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

Question about {% url %}

2007-07-29 Thread ZhangshenPeng
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 thing ? think code as below