I've recently run into the pesky "order_with_respect_to and MySQL not
supporting updating a table and selecting it in a subquery" issue. Any
official work being done on this issue at the moment? Unfortunately
pgsql isn't an option...
http://code.djangoproject.com/ticket/1760
otherwise, I guess
On 12/28/06, johnny <[EMAIL PROTECTED]> wrote:
Can someone tell how Django does i18n. I am thinking of doing my next
project using Django.
UI is template tagged, based i18n and i18n dependent database content?
Django uses the fairly standard gettext mechanism to handle
translations; check out
On 29-Dec-06, at 9:16 AM, johnny wrote:
Can someone tell how Django does i18n. I am thinking of doing my next
project using Django.
UI is template tagged, based i18n and i18n dependent database content?
just like python - gettext, _("matter") in scripts and {% trans
"matter" %} in templat
On 12/28/06, Adrian Holovaty <[EMAIL PROTECTED]> wrote:
If you're wanting an "official" way of learning the newforms library,
I'm afraid you'll have to wait until the APIs have solidified and the
documentation is done. This should be happening sooner rather than
later.
No, I'm not necessarily
On 12/28/06, Aaron Jacobs <[EMAIL PROTECTED]> wrote:
The [documentation] [1] on `newforms` is extremely sparse. Can anyone
comment on the best way to learn to use it? I'm specifically
concerned about best practices for data validation (even if they don't
involve `newforms`), but all of the for
Hi guys!
I used webware for a long time and I want to test newer tecnologies
now. I really liking the way Django works. One of the coolest thing I
see in django is the decoupling of applications to be able to attach
then in many projects.
Well, I'm trying the polls application and I try to be a
I'm having a bit of an issue with template inheritance and using the
linebreaks filter. When displaying text the linebreaks successfully get
interpreted to paragraph and br tags and the source displays them as
so. However, paragraph tags are not creating and extra line space,
everything is being
Can someone tell how Django does i18n. I am thinking of doing my next
project using Django.
UI is template tagged, based i18n and i18n dependent database content?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Dj
Hi,
I'll try to make this as simple as possible! I have a MasterItem
object. MasterItem has a ManyToMany relation to OpionGroup called
available_option_groups. OptionGroup has a ManyToMany relation to
OptionItem names option_items.
Now, I have a SubItem, which as a ForeignKey relation to Master
The [documentation] [1] on `newforms` is extremely sparse. Can anyone
comment on the best way to learn to use it? I'm specifically
concerned about best practices for data validation (even if they don't
involve `newforms`), but all of the form stuff is important to me.
Aaron
[1]: http://www.dj
Hi,
Has anyone managed to get PyLucene working with Django?
It all works perfectly in unittests etc., but I using the development
server import PyLucene causes python to crash (I suspect because the
thread doesn't subclass PyLucene.PythonThread).
On OS X 10.4.8 with Apache 2.0.59 compiled for
On 29-Dec-06, at 9:22 AM, Matthew Flanagan wrote:
Victor, have you got a ticket open with your patch? It would be worth
opening one so that other people could try it out while you are
waiting for commit access to be granted.
victor i would suggest you directly mail jacob kaplan-moss with you
On 28/12/06, Steve Hutton <[EMAIL PROTECTED]> wrote:
On 2006-12-22, Victor Ng <[EMAIL PROTECTED]> wrote:
>
> Hi, sorry for the long delay in replying. Holiday season and work
> craziness is getting in the way of writing free software - which is
> really the fun part isn't it? ;)
:-)
> It's
This subject is not a bug report or enhancement proposal, just a tip,
and I'v began to use it.
What I want to say?
==
I think many django users know that you can use decorator in the view,
just like:
-8<---
On 28-Dec-06, at 10:07 PM, Robin Becker wrote:
I don't much care for elite groups,
it is not an elite group - just a division of labour - django
development is discussed there
but surely the developers list is for actual developers.
no - developers, would-be developers and those who wou
-8<--
@template('template.html')
def list(request):
if success:
#return HttpResponseRedirect('url')
raise HttpRedirectException
else:
return errorinfo
-
On 28-Dec-06, at 7:48 PM, dutche wrote:
I don't know why, but when I write or take from the Database a word
with some kind of accent, Django shows a "?" instead.
are you sure its django and not your browser - did you try other
browsers?
--
regards
kg
http://lawgon.livejournal.com
http:/
I don't know if i understand it good, but if you want that keywords in
Article where related to user in the same model, it can't be done in
server level, because the behaviour is in browser side. You could do it
with javascript, DOM and some ajax to retrieve the list of keywords
related with the
For the autocomplete, surely you can create a custom widget that output
the desired format (an input and a div), but, as ever, the js should be
in the template layer.
About the ajax form handling, the most accessible way is doing it all
in js, replacing normal behaviour. So, if someone have not
On 29-Dec-06, at 5:54 AM, mediumgrade wrote:
Alright, I have a simple Work Order entry system. I want to add a
boolean field to the system. How is this done if there is already data
in the system? Can I just add it to the model, then run syncdb? Should
I add it to the model, then manually add
Yes, it works, a lot of thanks.
About convert username, I think I should create a select with the users
if the user is an admin, but usually each member profile is a OneToOne
with the user id, so it could be a hidden field. Now I'm going to try
to handle subforms like with old manipulators. :)
Hi,
I have been using django with sqlite and the development server on
windows for sometime now. Today was the first time that I moved to
mysql, apache, mod_python on gentoo linux.
In my templates I use restructured text. And it is giving me the
following error:
Traceback (most recent
Alright, I have a simple Work Order entry system. I want to add a
boolean field to the system. How is this done if there is already data
in the system? Can I just add it to the model, then run syncdb? Should
I add it to the model, then manually add it to the database? Is there a
documented approa
On 29-Dec-06, at 6:15 AM, ElGranAzul wrote:
But it will ERASE ALL your data
doesnt touch the admin part
--
regards
kg
http://lawgon.livejournal.com
http://nrcfosshelpline.in/web/
--~--~-~--~~~---~--~~
You received this message because you are subscribed t
With syncdb your model/table will be not updated. To upate your model
and database tables you should use:
# python manage.py reset yourapp
But it will ERASE ALL your data. It could be a problem, but with a bit
of old SQL it can be easily done.You could, for example, export all
data from databas
I have yet to get into the new forms so I can answer you precisely but
you should try something like:
class MemberDescriptionForm(forms.Form):
- user = forms.CharField()
+user_id = forms.CharField()
You probably have to write to your own code to convert the username to
an id and I didn'
Jeremy Dunck wrote:
On 12/28/06, Robin Becker <[EMAIL PROTECTED]> wrote:
...
no worries, in trac mode I added the patch then the patch and finally
changed
the summary to start with [patch].
--
And the uncaught exceptions?
I'll do another one tomorrow.
--
Robin Becker
--~--~-~--
On Dec 28, 2006, at 1:49 PM, Marijn P. Vriens wrote:
Any idea?
It is a mess, and has been for a while. It will go away when
everybody agrees to use the same encoding. I fear, it will be with
us for a long time :-/.
In theory, you should be escaping the accented characters into HTML
en
On Dec 26, 12:08 pm, "ak" <[EMAIL PROTECTED]> wrote:
You can search through this mailing list, I remember one guy about a
few months ago that compared django development to his previous php
expirience and found that django is now very well for him.
Unfortunatelly I have no link and I don't reme
I am starting to get to understand the problem. I hope. I did the
following test.
My current middleware settings:
MIDDLEWARE_CLASSES = (
"django.contrib.sessions.middleware.SessionMiddleware",
"django.middleware.gzip.GZipMiddleware",
"django.middleware.cache.CacheMiddlew
Hi all
I'm testing newforms, but there is no much docs here, but searching in
django page docs, the code, tests and this list there is some
information, but I've found a problem and i don't know how to do it.
If someone could give me a tip I will be very grateful. :)
The model is something like
Exactly like Vriens said, it's a problem of encoding.
Your best bet is to use UTF-8 all across. Set your DB to use UTF-8, use
a UTF-8 capable editor, add a meta tag to your html to indicate the
UTF-8 encoding. etc.
On Dec 28, 11:49 am, "Marijn P. Vriens" <[EMAIL PROTECTED]> wrote:
On Thursday 2
On Dec 28, 11:48 am, David Zhou <[EMAIL PROTECTED]> wrote:
On Dec 28, 2006, at 10:19 AM, Trey wrote:
> class Post(models.Model):
>postId = models.AutoField(primary_key = True)
>userId = models.ForeignKey(User, db_column = 'userId')
>title = models.CharField(maxlength = 100)
> cla
Sorry, but i press the enter key before end :(
The form definition is:
class MemberDescriptionForm(forms.Form):
user = forms.CharField()
gender = forms.ChoiceField(choices=GENDER, widget=RadioSelect)
birth = forms.DateField(widget=SelectBirthDateWidget)
## SelectBirthDateWidget is a s
On Dec 28, 2006, at 10:19 AM, Trey wrote:
class Post(models.Model):
postId = models.AutoField(primary_key = True)
userId = models.ForeignKey(User, db_column = 'userId')
title = models.CharField(maxlength = 100)
class User(models.Model):
userId = models.AutoField
On Thursday 28 December 2006 11:18, dutche wrote:
I don't know why, but when I write or take from the Database a word
with some kind of accent, Django shows a "?" instead. Why?? I've
changed the language in settings.py and even the TimeZone. If I escape
the chars with something like "á" it works
On 12/28/06, Robin Becker <[EMAIL PROTECTED]> wrote:
...
no worries, in trac mode I added the patch then the patch and finally changed
the summary to start with [patch].
--
And the uncaught exceptions?
--~--~-~--~~~---~--~~
You received this message because yo
Jeremy Dunck wrote:
The django-developers list exists not just for people that have
committer access, but for discussion of development -of- django, as
opposed to django-users, which exists for people developing -with-
django.
I was making the suggestion because I'd like to see the improvemen
Fabio Gomes wrote:
I m liked the simplicity of generic views, but i can´t find a way to set up
how many rows and cols my textarea have, is there a way to do it?
I believe you can style them using CSS. Please correct me if i am wrong.
--
Christian Joergensen | Linux, programming or web consult
Hi,
The sample string below appears correctly (ie. no "?"'s) for me; are
you saying that it does for you, or that it doesn't?
If you're just having a problem with rendered HTML: I'm not sure how
you're entering those characters, but I'm guessing that they're being
stored as Unicode char
I searched around a bit and I can't seem to find a definitive answer to
my problem. I think it's because I haven't quite started thinking in
the context that Django would like me to yet.
My problem is with selecting related information in different models
with a single PK. Let me insert my simpl
On 12/28/06, Robin Becker <[EMAIL PROTECTED]> wrote:
Jeremy Dunck wrote:
...
> This sounds like good input, but you'll have better luck if you 1)
> make a ticket and 2) send the message to django-developers.
..
I don't much care for elite groups, but surely the developers list is for ac
Jeremy Dunck wrote:
On 12/28/06, Robin Becker <[EMAIL PROTECTED]> wrote:
Our team has been using Django for about one year. I find it difficult
to debug
with Django despite the attempt at friendly traceback pages. It seems
Django has
failed to take advantage of the tracebacks that are avai
Hi,
I m liked the simplicity of generic views, but i can´t find a way to set up
how many rows and cols my textarea have, is there a way to do it?
thanx,
--
Fábio
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Dj
I don't know why, but when I write or take from the Database a word
with some kind of accent, Django shows a "?" instead. Why?? I've
changed the language in settings.py and even the TimeZone. If I escape
the chars with something like "á" it works, so isn't a problem
with my browser, right?
Does
On 12/28/06, Robin Becker <[EMAIL PROTECTED]> wrote:
Our team has been using Django for about one year. I find it difficult to debug
with Django despite the attempt at friendly traceback pages. It seems Django has
failed to take advantage of the tracebacks that are available.
This sounds like
Our team has been using Django for about one year. I find it difficult to debug
with Django despite the attempt at friendly traceback pages. It seems Django has
failed to take advantage of the tracebacks that are available.
First off near line 97 of django/views/debug.py
if pre_context_
Jeremy,
Thanks for the explanation. I am using mod_python. I will check if my
browser are sending Accept-Language. But, I suspect they do. Because,
whenever caching is disabled swithing between languages works perfect.
If I change for example the language settings in my browser and make
for exam
goodieboy wrote:
Hi, I've been using Django for the past 2 weeks and I'm in love. Now,
I'm forced to build an app with PHP 4! The host does have Python. I'm
wondering... is it nuts to use PHP to talk to python, to take advantage
of something like SQLAlchemy? :)
This may interest you:
Django a
Jacob Kaplan-Moss wrote:
It's not currently available. If I've got time, I might clean it up and
release it... maybe, maybe not.
That would be great. :-)
It would also be nice if the comments system worked with Opera (you
know, those pesky Nokia 770 handhelds...), but I guess it mainly
depend
I have the following simple form for user login, but it seems that the
password field's size is ignored. Any one has seen this before?
thanks.
{%trans
'Username:' %}
{% trans 'Password:'%}
--~--~-~--
51 matches
Mail list logo