so you are saying that SELECT * FROM some_table WHERE some_date LIKE
"2010%"
is not possible?
On Dec 3, 9:30 am, bruno desthuilliers <bruno.desthuilli...@gmail.com>
wrote:
> On 3 déc, 17:37, owidjaya <owidj...@gmail.com> wrote:
>
> > in php I can run the foll
It's for mysql
it still does not work. I tried it with the following sql statement
"SELECT * FROM project_project WHERE start_date LIKE '%s'" % '2010%%'
On Dec 3, 9:04 am, wayne <wayne.tuxro...@gmail.com> wrote:
> On Dec 3, 10:47 am, owidjaya <owidj...@gmail.com> wrote
It says incorrect date value.
On Dec 3, 8:44 am, wayne wrote:
> You should be able to do it just as you mention, passing the query
> string to cursor.execute().
>
> Seehttp://docs.djangoproject.com/en/dev/topics/db/sql/#executing-custom-...
>
> Have you tried this? Are
in php I can run the following query for mysql
SELECT * FROM some_table WHERE some_date LIKE "2010%"
How do i do this in django using cursor.execute()?
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to
How do i extends a template that is stored within an application
template directory from another application?
I have two apps
one is datagrid and the other one is client
I want to use datagrid to display list of clients
but instead of using the datagrid template that comes from the app, i
want to
correction it's "process_response" function not process_request.
On Nov 22, 2:48 pm, owidjaya <owidj...@gmail.com> wrote:
> What is the best way to go about handling ajax request per
> application?
>
> I currently have a middleware that implements "process_request
What is the best way to go about handling ajax request per
application?
I currently have a middleware that implements "process_request"
function.
the function acts as a relay to call "serve_ajax(request)" function
that is implemented in the application class that wants to respond to
ajax request.
Ok the motive is for this reason.
I have a table generator class that display an html table from the
query set depending on the columns that you selected
class TableGenerator(name,mapping,data):
def __init__(self,name,mapping,data):
self._mapping = mapping
self._name = name
If I have such models
class Project(models.Model):
project = models.CharField(max_length=200)
user = models.ForeignKey(User) # user is from
django.contrib.auth.models => user
I would like to be able to display an an attribute that is made up of
first_name and last_name concatenated when i
If i have such models
class Project(model.Model):
project = model.
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to
Hi all,
I have a problem with permission list. I deleted the table for a
django model, deleted the permission entries for the model from the
permissions table, restart web server, delete the content type entry
of the model and i still get the permission appearing in the list in
the admin page. I
Hi all,
I have a problem with permission list. I deleted the table for a
django model, deleted the permission entries for the model from the
permissions table, restart web server, delete the content type entry
of the model and i still get the permission appearing in the list in
the admin page. I
Hi all,
I have a problem with permission list. I deleted the table for a
django model, deleted the permission entries for the model from the
permissions table, restart web server, delete the content type entry
of the model and i still get the permission appearing in the list in
the admin page. I
tely need to dynamically access the values
> through generated keys?
> Not just a regular for loop?
>
> {% for var in some_mapping %}
> {{ var }}
> {% endfor %}
>
> - Sævar
>
> On Aug 9, 8:56 pm, owidjaya <owidj...@gmail.com> wrote:
>
> > i
in php i can do this
$some_mapping = array( "var1" : content_var1,
"var2" : content_var2,
)
for($i =1; $i < 3; $i++){
echo $some_mapping["var"+$i];
}
can i do this in django template?
--
You received this message
in php i can do this
$some_mapping = array( "var1" : content_var1,
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to
meta.fields
>
> At least with that information you could programatically produce a list of
> data in matching order with a little code.
>
> On Fri, Aug 6, 2010 at 1:34 PM, owidjaya <owidj...@gmail.com> wrote:
> > is there a way that i can get the a list of dictionaries as a r
is there a way that i can get the a list of dictionaries as a result
with the dictionary having the same field order as the table?
On Aug 6, 10:18 am, Daniel Roseman <dan...@roseman.org.uk> wrote:
> On Aug 6, 6:08 pm, owidjaya <owidj...@gmail.com> wrote:
>
> > I checke
I checked it and the field order still not the same.
Just to clarify. I want the to do this A.objects.all().values()
and still get the each list in the result to have the same "field
order" as the database table defined.
On Aug 6, 9:57 am, kostia wrote:
> use table =
Hi All,
I was just wondering is there a way to get queryset to return result
of a database lookup
to list the fields in the same order as it is defined in the database
table?
so for example in my
TABLE A
--
A
B
C
the query set result will return
exactly
[ {A: some value, B: some
how do i write custom template tag that is available to all my apps.
not tied to a particular app?
On Jul 26, 7:05 am, bruno desthuilliers
<bruno.desthuilli...@gmail.com> wrote:
> On 25 juil, 00:25, owidjaya <owidj...@gmail.com> wrote:
>
> > if i have a page with se
den...@kaarsemaker.net> wrote:
> On vr, 2010-07-23 at 12:50 -0700, owidjaya wrote:
>
> > I was thinking of creating a single point of entry to my webpage
> > through an app call "core" from there, depending on the url pattern,
> > it can pass the processing to different
Hi All,
I was thinking of creating a single point of entry to my webpage
through an app call "core" from there, depending on the url pattern,
it can pass the processing to different apps. how do i do that while
staying in the workflow of the framework?
--
You received this message because you
how can i pass a filtered value to a custom tag?
ie
if i do this
{% somecustomtag template_variable|lower %}
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe
010 at 11:06 PM, owidjaya <owidj...@gmail.com> wrote:
> > How can i find out what variable is accessible from the template?
>
> You need to pass the result of the query to the template.
> Or did you mean accessing the 'related' objects from the passed objects to
> the t
Hi All,
How can i find out what variable is accessible from the template?
If I have 2 models
Model A:
Name = text
Model B:
Name = text
a = ForeignKey(A)
how can i order the list of "objectA.b_set.all" from the template?
--
You received this message because you are subscribed to the
26 matches
Mail list logo