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
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
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: Pie
*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
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
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
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
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.
--
Karim Gojux
www.karimblog
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
www.yourdomain.com/articles/2
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 po
> 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
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
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
> >
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
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
##
15 matches
Mail list logo