On 27.1.2012 4:15, Chen Xu wrote:
When I type the following as the normal python function, it returns the
correct things:
>>> pattern =
re.compile(r'^account_activation\?user_id=(?P[0-9]+)&auth_key=(?P[0-9a-zA-Z]+)$')
>>> match =
pattern.match("account_activation?user_id=36&auth_key=f9717d96aa
When I type the following as the normal python function, it returns the
correct things:
>>> pattern =
re.compile(r'^account_activation\?user_id=(?P[0-9]+)&auth_key=(?P[0-9a-zA-Z]+)$')
>>> match =
pattern.match("account_activation?user_id=36&auth_key=f9717d96aa4e3452a47955225a60862d07119702")
>>> m
Works! Great! thanks!!! Lazy querysets!
On Thu, Jan 26, 2012 at 12:32 PM, Alasdair Nicol wrote:
> Hi RJ,
>
>
> On 26/01/12 20:10, rahul jain wrote:
>>
>> All,
>>
>> I have a query. Its working fine on sqlite server but not working fine
>> on mysql server.
>>
>> This is the error message on mysql
Brett, Thanks. That is what I needed. BillB1951
On Jan 26, 4:55 pm, Brett Epps wrote:
> It sounds like you're confused about how to add more than one piece of
> information to a template. When you render a template, the template is
> given a context, which is a Python dict object. A dict is a
It sounds like you're confused about how to add more than one piece of
information to a template. When you render a template, the template is
given a context, which is a Python dict object. A dict is a bunch of
key-value pairs. So, right now, you're probably doing something like:
return render_
I am a relatively new to Django, and have just run into a wall, but I
am sure this will be a cake walk for you veterans out there. I have a
list of items I am displaying in a table in a template. That is no
problem I create an object (list of values) in my view send it to the
template and render
Hi RJ,
On 26/01/12 20:10, rahul jain wrote:
All,
I have a query. Its working fine on sqlite server but not working fine
on mysql server.
This is the error message on mysql server: "This version of MySQL
doesn't yet support 'LIMIT& IN/ALL/ANY/SOME subquery"
This is the query:
inner_q = obj_
I think that depends upon the context the view provides, and upon what
tag libraries can be loaded.
Objects in the context can have their methods called (with some
restrictions). If your view pre-converts all interesting data to
strings and numbers, and/or sequences or dictionaries of such, then
All,
I have a query. Its working fine on sqlite server but not working fine
on mysql server.
This is the error message on mysql server: "This version of MySQL
doesn't yet support 'LIMIT & IN/ALL/ANY/SOME subquery"
This is the query:
inner_q = obj_unassigned.values_list('pk', flat=True)[:diff]
Hey all,
Not had much luck on this on django-developers, so if anyone else on
django-users wants to add their two cents on this thread, that'd be great.
I'm still looking into it, and it looks like the best approach is to create
a new MySQL backend with support for connection pooling, but I'm sti
Are Django templates safe enough to use templates provided by
untrusted users? Is it possible to limit functionality? I am not only
concerned with what the templates can access, but also things like
being able to consume excessive resources with, for example, deeply
nested loops.
If not Django tem
Hello ryan, you can contact this person : taha_zerrouki(at)yahoo.com . He
can help you for everything related to arabic processing.
Best regards,
Tarik Zakaria Benmerar
Acigna Inc.
CEO and Founder
--
You received this message because you are subscribed to the Google Groups
"Django users" grou
Hello,
I have a model with a FileField, that I use to store some user
uploaded files. After a while, I changed my mind about where to store
the files, so I was just wondering if there is a way to manually move
a file, and then update the location of the file as stored in the
database. I'm using a
13 matches
Mail list logo