Hi,
here we use dates as dd/mm/. Therefore, i have to use custom
manipulators to add and change objects.
What i do is this. If the user clicks on an objectline to change the
record, the ChangeManipulator will format the dates the way i want and
display them.
On submitting the form, the dates
[EMAIL PROTECTED] escribió:
> Javier,
>
>Is it possible to use this with the generic view?
No (AFAIK). You need to call it explicitly when processing the form.
Javier.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Goog
Adam M Peacock wrote:
> I'm currently writing a webapp in Django that will have some custom
> functions, such as sending email to a group of users - I would like to
> be able to leveredge Django's admin interface for the task, but I can't
> figure how where/how to make a custom page in the admin i
> I know I need flup. And I need to put the Django source on the server.
> But *where* do I upload them to, and *how* do I install them (how do i
> run the setup.py) without SSH?
>
> Any help would be awesome.
>
I don't know about godaddy deluxe but it seems you should do everything
using CGIs.
C
I am really struggling with this...
class Product(models.Model):
snip...
class Word(models.Model):
value = models.CharField(maxlength=200, core=True, unique=True)
class ProductWord(models.Model):
fk_word = models.ForeignKey(Word, core=True)
fk_product = models.
Hang on...
I realise I should have a ManyToMany thing going on... apologies
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To
> class Product(models.Model):
> snip...
>
> class Word(models.Model):
> value = models.CharField(maxlength=200, core=True, unique=True)
>
> class ProductWord(models.Model):
> fk_word = models.ForeignKey(Word, core=True)
> fk_product = models.ForeignKey(Product)
>
Hello,
I saw in the official docs that It's not a good practice to use the
django embedded web server in any production envionment.
I have a little Intranet with 4 workstation and a home made server
(based on an old pc).
There are no reason to think about security in this LAN because It's
only me,
On Tue, 2006-10-10 at 12:01 +0200, Picio wrote:
> Hello,
> I saw in the official docs that It's not a good practice to use the
> django embedded web server in any production envionment.
> I have a little Intranet with 4 workstation and a home made server
> (based on an old pc).
> There are no reas
When i post a comment with " woot♥" it is display well in the comment
preview but once posted appears at "woot?", why ? how to solve this ?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To po
I am trying to work in an all iso-8859-1 environment, and as such I
serve my data with that charset, by setting DEFAULT_CHARSET in
settings.py.
The result of this is that all national characters come up as ?, as
they are encoded in UTF-8 in the database, as this is encoding is
enforced[1] by the M
On Tue, 2006-10-10 at 11:00 +, coulix wrote:
> When i post a comment with " woot♥" it is display well in the comment
> preview but once posted appears at "woot?", why ? how to solve this ?
So the obvious questions are:
(1) What is stored in the database?
(2) What is produced in the web page
Thanks again, you show the right direction.
On sqlite3 it is stored as "woot♥"
On my dreamhost solution with mysql, it is stored as "woot?"
MySQL client version: 5.0.16
MySQL charset: UTF-8 Unicode (utf8)
:/ Any ideas of where to start ?
--~--~-~--~~~---~--~~
On 9 Oct 2006, at 21:07, mukappa wrote:
> One observation. When redirecting to https elsewhere in the django
> code I see this call, "django.http.get_host(request)" for resolving
> the host portion.
Good call, that function checks for HTTP_X_FORWARDED_HOST instead of
just request.META['HTT
I'm using GEDIT (on ubuntu) with auto-completion, file-tree, snippets
and python tools plugins. Very nice and fast.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send
So I am building my App and I have got the comments system working as I
want for the first round but I would like to utilise ajax to be able to
post and update in the page, rather than new pages all the time.
I have read though some excellent posts on ajax and django, and
understand what is requi
look here http://code.djangoproject.com/wiki/AjaxDjangoDojoForm
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe
Benedict Verheyen schreef:
> == ChangeManipulator ==
> class TeamverslagChangeManipulator(Teamverslag.ChangeManipulator,
> CustomManipulator):
> default = {}
> done = False
>
> def __init__(self,object_id):
> # Construct the fields an
On Tue, 2006-10-10 at 05:28 -0700, timc3 wrote:
> So I am building my App and I have got the comments system working as I
> want for the first round but I would like to utilise ajax to be able to
> post and update in the page, rather than new pages all the time.
>
> I have read though some excell
Hi!
On 10 Oct 2006, at 13:39, coulix wrote:
>
> Thanks again, you show the right direction.
>
> On sqlite3 it is stored as "woot♥"
> On my dreamhost solution with mysql, it is stored as "woot?"
>
> MySQL client version: 5.0.16
> MySQL charset: UTF-8 Unicode (utf8)
Did you forget to do
mysql>
Juergen Barth barth-partners.com> writes:
>
>
> Adam M Peacock wrote:
> > I'm currently writing a webapp in Django that will have some custom
> > functions, such as sending email to a group of users - I would like to
> > be able to leveredge Django's admin interface for the task, but I can't
>
Sorry for what is probably a simple python question, but if I have a
list of Products and I have searched for 100 of them ordered by x...
then how do I then sort the QuerySet returned by title?
I can't do an .. object_list = products.items().sort('title')
because I have already done a [:100]
Anyone?
[EMAIL PROTECTED] wrote:
> I know the user last login is available through the user object, and
> I've seen Ian's middleware for lastseen, but I'm really struggling
> with figuring out how to get some sort of user last visited thing
> together.
>
> Any suggestions?
--~--~-~--~
Serg,
On 10/8/06, Serg Kovrov <[EMAIL PROTECTED]> wrote:
>
> I'd like to know what editor/IDE Django users (and developers) uses on
> daily basis, to boost development process.
I haven't seen it mentioned so far, and I haven't used either it nor
the other IDE's mentioned here to recommend it pa
I am using emacs but I am looking for a editor easier to customize.
For instance I'd like to be able to write small snippet of python code
to do some tasks.
What do you suggest?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Goog
On 10/10/06, Giovanni Giorgi <[EMAIL PROTECTED]> wrote:
>
> I am using emacs but I am looking for a editor easier to customize.
> For instance I'd like to be able to write small snippet of python code
> to do some tasks.
> What do you suggest?
>
UliPad
--
I like python!
UliPad <>: http://wiki.wo
timc3 timc3.com> writes:
> Can I specify a custom view without having
> to edit the django framework, or am I going to have to do this?
I really like the idea of layering any ajaxy behavior on simple XHTML. There is
some name for this, "graceful degradation" or something (which, in one sense,
On 10 Oct 2006, at 15:08, Tom Smith wrote:
>
> Sorry for what is probably a simple python question, but if I have a
> list of Products and I have searched for 100 of them ordered by x...
>
> then how do I then sort the QuerySet returned by title?
>
> I can't do an .. object_list = products.items
Tom Smith wrote:
>
> On 10 Oct 2006, at 15:08, Tom Smith wrote:
>
>> Sorry for what is probably a simple python question, but if I have a
>> list of Products and I have searched for 100 of them ordered by x...
>>
>> then how do I then sort the QuerySet returned by title?
>>
>> I can't do an .. o
I use Leo (http://webpages.charter.net/edreamleo/front.html) for all my
Python programming, and recently have been using it for my experiments
with django. Leo is a general data management environment, an outlining
editor and much more.
Leo is written in Python and has its own built-in editor, bu
Hi Tom,
Are you wanting the same 100 results you got in the first query just
ordered by title, or are you looking for a different 100 results based
on the order by title?
If you are looking for a different list of a 100 results, which is how
I'm taking your email, then you'd need to do another q
ok so i just saw the paren's. nevermind
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, se
Hi, I'm new to django and I was going through the polling tutorial when
I ran into this problem. It seems like django is not parsing the tags
in the template. This code is lifted right from the tutorial(I went all
the way through tutorial 4 so thats why the object is object instead of
poll).
{% i
I use Komodo IDE and couldn't be happier. Giovanni, you may want to check it out, with it you can write macros in _javascript_ or Python. For example, take this one (See: http://pastie.caboo.se/16926
) which allows me to type ".span" in an HTML document, hit ALT + S, and it will insert the snippet
Hi, I want to make a filefield that only allows to upload mp3 files. I
have added the following code to my model:
def _manipulator_validate_filefield(self,field_data,all_data):
if not self.archivo.endswith(".mp3"):
raise validators.ValidationError, 'Please select an mp3
file.'
Hello,
I just learnt Python last week and I'm currently reading the
Django tutorials. Coming from a Java background, I really really like
what I am seeing with Django. I just have a few questions though.
I just got a contract to build a web application. To be honest, in some
ways it is f
(Sorry if you've received this message already)
I'm developing a website using django and the host has an old version
of mysql, more precisely 3.23.58. I wonder if the db-api is compatible
with this version? Unfortunately upgrading mysql is not an option.
Regards,
João Cruz Morais
--~--~--
hello again!
there are 2 weeks since i started using Django and I can say that i
done a lot of things easier then in PHP.
just one problem for today what can you tell me about the
combination between Django and Ajax? did somebody used Ajax with
Django; if yes... how it was it?
--~--~
Hi,
I've searched the group many times, but didn't find the one solution
for
creating new objects with "user" field preserved.
I want to avoid a hidden field with user value set.
Let's say I have an "Alert" model with fields:
owner = ForeignKey(User, blank=False)
type = models.CharField(maxlen
is it possible? I am on the latest trunk, 0.96-pre...
in the admin class, I can fake ordering by a foreign key field using
the table name and list_select_related
class Admin:
list_select_related = True
ordering = ['myapp_mytable.myfield']
the same does no
>> Can I specify a custom view without having to edit the
>> django framework, or am I going to have to do this?
>
> I really like the idea of layering any ajaxy behavior on
> simple XHTML. There is some name for this, "graceful
> degradation" or something (which, in one sense, is a great
> oxy
With about a million records I can't imagine doing it any other way...
I want to find my top 100 words (by product_count) then sort them
alphabetically to make a tag cloud...
thanks...
--~--~-~--~~~---~--~~
You received this message because you are subscr
You're using curly brackets for the first loop and normal ones for the
other.
Best regards
Jan
[EMAIL PROTECTED] wrote:
> Hi, I'm new to django and I was going through the polling tutorial when
> I ran into this problem. It seems like django is not parsing the tags
> in the template. This code
Geert Vanderkelen wrote:
> Did you forget to do
> mysql> SET NAMES 'UTF8";
> when selecting in your client?
>
That's done automatically for you in
django.db.backends.mysql.DatabaseWrapper.cursor:
if self.connection.get_server_info() >= '4.1':
cursor.execute("SET NAMES 'utf
puyuus a écrit :
> hello again!
> there are 2 weeks since i started using Django and I can say that i
> done a lot of things easier then in PHP.
> just one problem for today what can you tell me about the
> combination between Django and Ajax? did somebody used Ajax with
> Django; if yes... ho
On 10/9/06, João Cruz Morais <[EMAIL PROTECTED]> wrote:
> I'm developing a website using django and the host has an old version
> of mysql, more precisely 3.23.58. I wonder if the db-api is compatible
> with this version? Unfortunately upgrading mysql is not an option.
Compatibility with particul
My model is like this...
class Product(models.Model):
class Word(models.Model):
value = models.CharField(maxlength=200, core=True, unique=True)
class ProductWord(models.Model):
fk_word = models.ForeignKey(Word , core=True)
fk_product = models.ForeignKey(Produc
Hi,
SAP's database is actually called "MaxDB by MySQL" and you get lots of
information about it on www.mysql.com, including Python drivers. It is
an extremely performant ans feature rich RDBMS, comparable to Oracle,
but it is Open Source. I personally have done quite a few projects with
it, from
Hi I'm using scribes (http://scribes.sourceforge.net/) I find it simple
and minimalistic.
The Snippset feature is really usefull and it's really easy to personalize
ciao ciao
Basetta
>
> I use Leo (http://webpages.charter.net/edreamleo/front.html) for all my
> Python programming, and recently hav
Hi I'm using scribes (http://scribes.sourceforge.net/) I find it simple
and minimalistic.
The Snippset feature is really usefull and it's really easy to personalize
ciao ciao
Basetta
>
> I use Leo (http://webpages.charter.net/edreamleo/front.html) for all my
> Python programming, and recently hav
Hi,
I need to add a few columns to some of the tables in a live application. We have new requirements.
I propose to do the same by adding a column to the MySQL table using .
ALTER TABLE table_name ADD new_field_name VARCHAR(60);
Will it work?
And how do I add a field name (say URLField
On 10/10/06, Nicolas Steinmetz <[EMAIL PROTECTED]> wrote:
>
> puyuus a écrit :
> > hello again!
> > there are 2 weeks since i started using Django and I can say that i
> > done a lot of things easier then in PHP.
> > just one problem for today what can you tell me about the
> > combination bet
On 10 Oct 2006, at 17:51, Ramdas S wrote:
> Hi,
>
>
> I need to add a few columns to some of the tables in a live
> application. We have new requirements.
>
> I propose to do the same by adding a column to the MySQL table using .
>
>
>
> ALTER TABLE table_name ADD new_field_name VARCHAR(60);
>
On 10/6/06, daibatzu <[EMAIL PROTECTED]> wrote:
>
[snip]
>
> Finally, does Django have helpers that output natural text. Like, I
> think, Ruby (or rails?) can say stuff like "3 days ago" or "less than a
> minute ago" and so on with respect to time. Does Django or Python have
> similar libraries?
>
Thanks
Ramdas
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
Pyscripter is the best I found yet. Although, it would be great if one
could debug django applications using it... (by debugging I mean
setting breakpoints and doing step by step execution from within the
IDE).
I find the debugging part something most python IDEs are really
lacking. The best ones
Am Montag, 9. Oktober 2006 09:07 schrieb Holger Schurig:
> > agreed, in a perfect world i would parse the log files. But
> > sometimes you don't have access to a cron daemon.
>
> In this case you should read the database API documentation page.
> Then your code looks something like this:
>
> from
I've been using J [1] for a while, it's a lean, fast Java-based editor
with good syntax highlighting support and a class browser. It also has
its own LISP interpreter and email client, but I never use those. :)
[1] http://armedbear.org/
--~--~-~--~~~---~--~~
You
Or to put it more simply... all I'm trying to do is this...
Select * from myapp_product, myapp_productword, myapp_word
where
myapp_productword.fk_product_id = myapp_product.id
and
myapp_productword.fk_word_id = myapp_word.id
and
value = 'assam'
order by title
..returning Product objects...
--
Hi Juergen,
On 10 Oct 2006, at 18:40, Juergen Barth wrote:
..
>
> Regarding its integration into Django, I don't know; there is a PHP
> connector which emulates MySQL commands and transfers them into MaxDB
> statements. Maybe it could be adapted to be used with Django... Looks
> like lots of work
Tom Smith wrote:
> With about a million records I can't imagine doing it any other way...
>
> I want to find my top 100 words (by product_count) then sort them
> alphabetically to make a tag cloud...
>
> thanks...
If you are only dealing with 100 records after the query, then its not
a big de
is it possible to store the call for a templatetag in the database?
we´re having a sidebar which consists of templatetags only. now, we´d
like the user to be able to move different sections up and down or
even delete that section.
the sidebar looks like:
{% CommentsUser userid %}
{% TagsUser
I was talking about the generated SQL. Django db-api might produce SQL
which is not understood by this version of mysql.
João
On Oct 10, 5:36 pm, "James Bennett" <[EMAIL PROTECTED]> wrote:
> On 10/9/06, João Cruz Morais <[EMAIL PROTECTED]> wrote:
>
> > I'm developing a website using django and t
On 10/10/06, João Cruz Morais <[EMAIL PROTECTED]> wrote:
> I was talking about the generated SQL. Django db-api might produce SQL
> which is not understood by this version of mysql.
I can't think of anything we do that would break it, but I also don't
know nearly enough about ancient versions of
Hi João, James,
On 10 Oct 2006, at 18:36, James Bennett wrote:
>
> On 10/9/06, João Cruz Morais <[EMAIL PROTECTED]> wrote:
>> I'm developing a website using django and the host has an old version
>> of mysql, more precisely 3.23.58. I wonder if the db-api is
>> compatible
>> with this version?
On 10/10/06, patrickk <[EMAIL PROTECTED]> wrote:
>
> is it possible to store the call for a templatetag in the database?
>
> we´re having a sidebar which consists of templatetags only. now, we´d
> like the user to be able to move different sections up and down or
> even delete that section.
> the
Don't forget that sort() takes a key argument to sort by an arbitrary
function of the elements, so there's no need to build extra
datastructures:
object_list = Word.objects.all().order_by('-product_count')[:100]
object_list.sort(key=lambda w: w.title)
--Ned.
DavidA wrote:
Tom Smith wrote:
On 10/10/06, Waylan Limberg <[EMAIL PROTECTED]> wrote:
[snip]
> Although, I'm not sure how you would pass the
> current user to the loader.
Just rethinking my answer. I would probably go with a custom
templatetag instead. You already have the text of the sidebar template
(from your db) as a vari
thanks, that´s great input.
I´m not sure, but do I have to pass the current user to the loader?
I don´t think so.
the template, stored in the database should look like this:
{% CommentsUser userid %}
{% TagsUser userid %}
{% OwnEntry 123 %}
{% LatestComments userid %}
{% FlickrStuff userid %}
heh - I was hoping to see an answer myself.I think enabling something in the middleware layer, or through your own authentication mechanism, is the answer. I haven't used it extensively, but I don't think it automatically gets updated when the user logs in - I think that's some additional processin
I have a view A that passes values (via dictionary pairs) to template
B, which has a form that posts values to a view C. I'd like to pass a
value from view A to view C through template B without having it appear
as a value in a visual element of the form.
--~--~-~--~~~---
what about using sessions?
p.
Am 10.10.2006 um 22:32 schrieb carlwenrich:
>
> I have a view A that passes values (via dictionary pairs) to template
> B, which has a form that posts values to a view C. I'd like to pass a
> value from view A to view C through template B without having it
> appe
> I am using emacs but I am looking for a editor easier to
> customize. For instance I'd like to be able to write small
> snippet of python code to do some tasks. What do you suggest?
I'm about to commit heresy here (as a vi/vim user), but I'd
recommend that you stick with Emacs. It sounds like
I've written a suggestion, about creating a vim plugin that will aid in
the django development process for the Vim users.
Read the suggestion on django's wiki:
http://code.djangoproject.com/wiki/UsingVimWithDjango
I don't 'speak' Ex/Exim, so if a django user is familar with it and
would like to
I guess this would be a good time to learn what they are. Thanks, I'll
dive into the manual (again).
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to django-
carlwenrich wrote:
> I have a view A that passes values (via dictionary pairs) to template
> B, which has a form that posts values to a view C. I'd like to pass a
> value from view A to view C through template B without having it appear
> as a value in a visual element of the form.
There are a co
See if this helps:
Product.objects.filter(productword__fk_word__value__exact='thomas').distinct()
--~--~-~--~~~---~--~~
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
Hi, I myself am learning this, but I'd like to take a crack at your
question.
Based on the DB API document, you need to employ both select_related()
(to go from a model with a FK to the objects related by that FK), and
somefield_set (to go the other way). (Note it seems select_related is
a method
Thanks. I like the hidden input type idea. About sessions, do they
still work if the user's browser doesn't accept cookies?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group
On 10/10/06, Panos Laganakos <[EMAIL PROTECTED]> wrote:
>
> I've written a suggestion, about creating a vim plugin that will aid in
> the django development process for the Vim users.
>
> Read the suggestion on django's wiki:
> http://code.djangoproject.com/wiki/UsingVimWithDjango
>
> I don't 'spe
carlwenrich wrote:
> Thanks. I like the hidden input type idea.
In practice it's harder. You will clutter your code with unnecessary
serialization and deserializations, you will have to always remember to
add values both in views and templates. And if you want to pass them not
over form submit
> * Filter out __init__.py files and any other files not needed.
But take care.
Some __init__.py files have actually code inside (like the
/django/contrib/auth/__init__.py one)
G
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Goo
João Cruz Morais wrote:
> I'm developing a website using django and the host has an old version
> of mysql, more precisely 3.23.58. I wonder if the db-api is compatible
> with this version? Unfortunately upgrading mysql is not an option.
I have seen the Django code generate SQL that uses subsel
Has anyone got this working? Or any other way of ordering items in the
admin interface by foreign key? I get error messages in the admin
interface with the example below, as far as I can tell it is like the
manual.
Example from manual:
class Answer(models.Model):
question = models.ForeignKey
Hello, I got the point thanks.
Which one is more easy to configure between
Apache + mod_python + django
and
Lighttpd +flup + fastcgi + django?
The platform will be a pIII 650 with windows2000 sp4, max user no. is 4.
2006/10/10, Malcolm Tredinnick <[EMAIL PROTECTED]>:
>
> On Tue, 2006-10-10 at 12
Hello, I got the point thanks.
Which one is more easy to configure between
Apache + mod_python + django
and
Lighttpd +flup + fastcgi + django?
The platform will be a pIII 650 with windows2000 sp4, max user no. is 4.
Picio
--~--~-~--~~~---~--~~
You received this me
On 10 Oct 2006, at 22:11, RajeshD wrote:
>
> See if this helps:
>
> Product.objects.filter
> (productword__fk_word__value__exact='thomas').distinct()
When I try that... I get...
TypeError: Cannot resolve keyword 'productword' into field
--~--~-~--~~~---~--~~
Y
I've been using Apache+Mod_Python+Django on windows without any trouble at all. The biggest "trick" is to set the configuration to enable the mod_python module and pass requests through to the right handler.
I don't know if it'll help you, but here's some of the example config pieces I use on my ow
extra() expects a dictionary of extra select fields, and a list of
query parameters to go with it. Since dictionaries are unordered,
something like this fails:
extra(select={'thingOne': 'REGEX %s', 'thingTwo': 'REGEX %s'}, params
= (one, two))
Is this a known problem? Should I be writing m
WoW thanks, I'll give it a try.
Is lighttpd setup more easy?
Picio
2006/10/11, Joseph Heck <[EMAIL PROTECTED]>:
> I've been using Apache+Mod_Python+Django on windows without any trouble at
> all. The biggest "trick" is to set the configuration to enable the
> mod_python module and pass requests t
On 10/8/06, Serg Kovrov <[EMAIL PROTECTED]> wrote:
> I'd like to know what editor/IDE Django users (and developers) uses on
> daily basis, to boost development process. And why exactly - what
> features you find useful, how it helps you to save time (or just makes
> coding enjoyable, which probab
just depends on what you're used to. I've not done lighttpd on windows, so I couldn't say. Since I had Apache, there didn't seem much reason to investigate and use Lighttpd+Flup on Windows.I use Lighttpd+Flup+Django on TextDrive, and it runs fine there - but that's a unix system and most of the pie
I have a site for spanish audience, is like a yellow pages for
restaurants.
I do a mix of hierachy and tag based navigation like:
Comida/Latina/Costa Este
Comida/Típica/Antioqueña
Comida/Rápida
Note the á, í, ñ and space.
I'm confused about how encode and decode this.
I try urllib.quote_plus
Since database entries for "session_key" do not correspond to the
cookie sessionid set at login or whenever, how does Django match a
given sessionid cookie to a session? Basically I am trying to
integrate (to a point) a non-django, non-python app into a django app.
All I would be doing (I think)
Thanks everyone.
I think I'm going to stick with sqlite until I find a better solution.
João
On 10/10/06, Terry <[EMAIL PROTECTED]> wrote:
>
> João Cruz Morais wrote:
>
> > I'm developing a website using django and the host has an old version
> > of mysql, more precisely 3.23.58. I wonder if the
On 10/11/06, Beau Hartshorne <[EMAIL PROTECTED]> wrote:
>
> Is this a known problem? Should I be writing my own SQL query instead
> of trying to make extra work?
More a limitation than a problem. Python dictionaries are what they
are - your use case is a little unusual compared to what I have
usu
On 10/8/06, zenx <[EMAIL PROTECTED]> wrote:
>
> I thought that was enought to validate the file but it doesn't validate
> anything when saving a new object, so what else should I do?
Instructions on validator use can be found here:
http://www.djangoproject.com/documentation/forms/#validators
By
On Tue, 2006-10-10 at 15:41 +0100, Tom Smith wrote:
>
> On 10 Oct 2006, at 15:08, Tom Smith wrote:
>
> >
> > Sorry for what is probably a simple python question, but if I have a
> > list of Products and I have searched for 100 of them ordered by x...
> >
> > then how do I then sort the QuerySet
James Bennett wrote:
>
> I can't think of anything we do that would break it, but I also don't
> know nearly enough about ancient versions of MySQL.
If you have a "date_hierarchy" in your models.py, it will break with
MySQL 3.23.53 as Django builds a query that uses "CAST()", which didn't
exist u
On Tue, 2006-10-10 at 15:48 -0700, Beau Hartshorne wrote:
> extra() expects a dictionary of extra select fields, and a list of
> query parameters to go with it. Since dictionaries are unordered,
> something like this fails:
>
> extra(select={'thingOne': 'REGEX %s', 'thingTwo': 'REGEX %s'}, pa
1 - 100 of 109 matches
Mail list logo